API reference
components/label
Import
Section titled “Import”import * as api from "@fungi.computer/caps/components/label";Exports
Section titled “Exports”| Kind | Export | Description |
|---|---|---|
| type alias | LabelProps | Props accepted by Label. |
| constant | Label | A label primitive that associates caller-provided text with a form control. |
LabelPropstype alias
Section titled “LabelProps”type LabelProps = object & LabelHTMLAttributes<HTMLLabelElement>;Props accepted by Label.
Type Declaration
Section titled “Type Declaration”| Name | Type | Description |
|---|---|---|
optional? |
boolean |
Adds a quiet “Optional” readout after the text. |
required? |
boolean |
- |
Labelconstant
Section titled “Label”const Label: ForwardRefExoticComponent< object & LabelHTMLAttributes<HTMLLabelElement> & RefAttributes<HTMLLabelElement>>;A label primitive that associates caller-provided text with a form control.