Function freya::components::Button
source · pub fn Button<'a>(cx: &'a Scoped<'a, ButtonProps<'a>>) -> Option<VNode<'a>>
Expand description
Button
component.
Props
See ButtonProps
.
Styling
Inherits the ButtonTheme
theme.
Example
fn app(cx: Scope) -> Element {
render!(
Button {
onclick: |_| println!("clicked"),
label {
"Click this"
}
}
)
}