Label
formsRenders an accessible label associated with controls.
Preview
Installation
npm install @launchapp/design-systemImport
import { Label } from "@launchapp/design-system";Examples
Label with Input
<div className="flex flex-col gap-1.5"> <Label htmlFor="name">Your name</Label> <Input id="name" placeholder="Enter your name" /></div>Props
| Prop | Type | Default | Description |
|---|---|---|---|
htmlFor | string | — | The ID of the form element this label is for. |
className | string | — | Additional CSS classes. |