Zum Inhalt springen

UI: Checkbox

Als Markdown ansehen

Eine Checkbox mit ihrer Beschriftung. Importiere die Token-Datei einmal (@pithyx/ui/tokens.css) und umschließe die App mit UiProvider; siehe @pithyx/ui.

Beim Build aus den TSDoc-Kommentaren von @pithyx/ui 1.0.0-rc.9 erzeugt; der Text unter den Überschriften ist der Kommentar im Quelltext und bleibt Englisch.

The props of Checkbox: React Aria’s checkbox field props plus the label.

  • Omit<CheckboxFieldProps, "className" | "children">
children: ReactNode;

The label, also the accessible name.

function Checkbox(props): Element;

A checkbox with its label.

Parameter Typ Beschreibung
props CheckboxProps React Aria’s checkbox field props (isSelected, onChange, isDisabled) plus the label.

Element

The checkbox with its label.