Module Solidtype_heroui.Label

HeroUI's Label: a field's name, with HeroUI's classes from Styles.Label, marked required, disabled or invalid as it is told. It is a <label>, unless a part above it gives it its element, as React Aria's do: a <span> inside a control's own clickable label, Switch.Content and the others, the group's label, which names the group, inside a Radio_group, and the field's, which names its input, inside a Text_field.

  <Label>"Wi-Fi"</Label>
type slot = ((unit -> string) -> unit Solidtype.Solid.rest -> (unit -> Solidtype.Jsx.content) -> Solidtype.Jsx.element) Js.Fn.arity3

How a label renders below a part: given its classes, the rest of its props -- its data- attributes -- and its children, the element it is, which declares data-slot="label".

module Slot : sig ... end

The slot a part gives the labels below it.

module Props : sig ... end