Button

Displays a button.

Button Sizes

Button Icon

With Icon

Anatomy

Import all parts and piece them together.

use leptos::prelude::*;
use singlestage::button::*;

#[component]
pub fn ButtonAnatomy() -> impl IntoView {
    view! { <Button /> }
}

API Reference

Button

Creates a button.

Custom Attributes
NameTypeDefaultDescription
button_typeString"submit"

Renamed <button> `type` attribute to avoid name collisions.

sizeString""

Specify the size to render the button.

variantString"primary"

Specify the style of button to render.

Implements global and button attributes.