Function freya_components::Button

source ·
pub fn Button(props: ButtonProps) -> Element
Expand description

Clickable button.

§Styling

Inherits the ButtonTheme theme.

§Example

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