Skip to content

Label API

import { Label } from "@stratakit/bricks";
// OR
import Label from "@stratakit/bricks/Label";
Base element: <label>

A styled wrapper over the HTML <label> element, used for labelling form controls.

Example usage:

<Label htmlFor="my-input">Label</Label>
<TextBox.Input id="my-input" />

See Field.Label for convenient usage with form controls (e.g. automatic association with adjacent form control).