thaw/demo_markdown/docs/switch/mod.md
2024-02-09 22:47:46 +08:00

575 B

Switch

let value = create_rw_signal(false);

view! {
    <Switch value />
}

Switch Props

Name Type Default Description
class OptionalProp<MaybeSignal<String>> Default::default() Addtional classes for the switch element.
value Model<bool> false Switch's value.