Function freya_components::FilledButton

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

Clickable button with a solid fill color.

§Styling

Inherits the filled ButtonTheme theme.

§Example

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