Function freya_components::Button 
source · pub fn Button<'a>(cx: Scope<'a, ButtonProps<'a>>) -> Element<'_>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"
            }
        }
    )
}