Module Solidtype_heroui.Switch

HeroUI'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.

type switch

What a switch's parts read of it, which its parts are given.

module Context : sig ... end
module Content : sig ... end

The clickable label that holds the control and its Label: Kobalte's Switch.Label, the switch's input inside it.

module Control : sig ... end

The track the thumb moves along.

module Thumb : sig ... end

The thumb.

module Props : sig ... end