Module Solidtype_heroui.Checkbox

HeroUI's Checkbox: Kobalte's Checkbox.Root, its Label and its Input, in HeroUI's anatomy, with HeroUI's classes from Styles.Checkbox and the state its styles read -- selected, indeterminate, disabled, invalid, hovered, pressed, focus-visible -- declared as React Aria writes it. Its props are named as HeroUI's documentation names them. A Description inside it, but outside its content, is its own, which its input is described by. Inside a Checkbox_group, it is checked while its value is among the group's, and takes the group's variant where it sets none, and its state.

  <Checkbox default_selected=true>
    <Checkbox.Content>
      <Checkbox.Control><Checkbox.Indicator /></Checkbox.Control>
      <Label>"Accept terms"</Label>
    </Checkbox.Content>
  </Checkbox>

A part is used inside a Checkbox: elsewhere it raises Invalid_argument as it is made.

type checkbox

What a checkbox's parts read of it.

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

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

module Control : sig ... end

The box the indicator is drawn in.

module Indicator : sig ... end

The mark: HeroUI's check, drawn in as it is selected, or its dash while indeterminate, unless given children of its own.

module Props : sig ... end