Component docs
Loading
import { Label } from "@pixxl-tools/components";
// In Server Components:
import { Label } from "@pixxl-tools/components/server";| Prop | Type | Default | Description |
|---|---|---|---|
required | boolean | — | Marks the field required. |
requiredboolean
Marks the field required.
Other props are passed to the root element (LabelHTMLAttributes<HTMLLabelElement>), including className, style, id and aria-* attributes.
<Label required>Width</Label>