Function freya::components::Button

source ·
pub fn Button(props: ButtonProps) -> Option<VNode>
Expand description

Clickable button.

§Styling

Inherits the ButtonTheme theme.

§Example

fn app() -> Element {
    rsx!(
        Button {
            onclick: |_| println!("clicked"),
            label {
                "Click this"
            }
        }
    )
}