pub fn Button(props: ButtonProps) -> ElementExpand description
A button component styled with theme-chalk CSS
This component wraps the native HTML button element and applies theme-chalk CSS classes for consistent styling.
§Example
ⓘ
use dioxus_theme_chalk::components::button::{Button, ButtonVariant, ButtonSize};
rsx! {
Button {
variant: ButtonVariant::Primary,
size: Some(ButtonSize::Medium),
on_click: move |_| println!("Button clicked!"),
"Click me!"
}
}