Skip to content
API reference

components/label

Import
import * as api from "@fungi.computer/caps/components/label";
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”
Signature
type LabelProps = object & LabelHTMLAttributes<HTMLLabelElement>;

Props accepted by Label.

Name Type Description
optional? boolean Adds a quiet “Optional” readout after the text.
required? boolean -

Labelconstant

Section titled “Label”
Signature
const Label: ForwardRefExoticComponent<
object &
LabelHTMLAttributes<HTMLLabelElement> &
RefAttributes<HTMLLabelElement>
>;

A label primitive that associates caller-provided text with a form control.