pub fn Switch(props: SwitchProps) -> ElementExpand description
Renders the official switch with controlled state and accessible interaction.
- Complexity: O(attributes + children) render work.
ยงExamples
use adam_web_ui::components::switch::Switch;
use dioxus::prelude::*;
fn app() -> Element { rsx! { Switch { aria_label: "Enabled" } } }