use crate::components::{Demo, DemoCode}; use leptos::*; use prisms::highlight_str; use thaw::*; #[component] pub fn ButtonPage() -> impl IntoView { view! {
"Name" | "Type" | "Default" | "Description" |
---|---|---|---|
"style" | "MaybeSignal |
r#""""# | "Button's style." |
"variant" | "MaybeSignal |
"ButtonVariant::Primary" | "Button's variant." |
"color" | "MaybeSignal |
"ButtonColor::Primary" | "Button's color." |
"round" | "MaybeSignal |
"false" | "Whether the button shows rounded corners." |
"icon" | "Option |
"None" | "The icon of the button." |
"loading" | "MaybeSignal |
"false" | "Whether the button shows the loading status." |
"disabled" | "MaybeSignal |
"false" | "Whether the button is disabled." |
"on_click" | "Option |
"None" | "Listen for button click events." |
"children" | "Children" | "Button's content." |