Solidtype_heroui.SwitchHeroUI's Switch: Kobalte's Switch.Root, its Label and its Input, in HeroUI's anatomy, with HeroUI's classes from Styles.Switch and the state its styles read -- selected, disabled, hovered, pressed, focus-visible -- declared as React Aria writes it. Its props are named as HeroUI's documentation names them.
<Switch default_selected=true>
<Switch.Content>
<Switch.Control><Switch.Thumb /></Switch.Control>
<Label>"Wi-Fi"</Label>
</Switch.Content>
</Switch>A part is used inside a Switch: elsewhere it raises Invalid_argument as it is made.
module Context : sig ... endmodule Content : sig ... endThe clickable label that holds the control and its Label: Kobalte's Switch.Label, the switch's input inside it.
module Control : sig ... endThe track the thumb moves along.
module Thumb : sig ... endThe thumb.
module Props : sig ... endval make : Props.t -> Solidtype.Jsx.elementval component : Props.t Solidtype.Jsx.component