Skip to main content

Switch

Function Switch 

Source
pub fn Switch(props: SwitchProps) -> Element
Expand 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" } } }