Component
Label
Associates text with a form control.
Install
Run the CLI to copy the source into your project.
pnpm dlx @stalk-ui/cli add @stalk-ui/labelExamples
Live previews render through the docs app's PandaCSS codegen.
<Label htmlFor="email">Email</Label>
<Label required htmlFor="name"> Name </Label>
<Label size="lg" htmlFor="bio"> About you </Label>
Props
Public component props extracted from the source TypeScript types.
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
| `required` | `boolean` | No | - | - |
| `size` | `LabelSize` | No | - | - |
Variants
Variant axes exposed by the underlying PandaCSS recipe or slot recipe.
| Variant | Values |
|---|---|
| `required` | `true` |
| `size` | `sm`, `md`, `lg` |
Registry
Files this component contributes to your registry install.
- Manifest: `/r/label.json`
- Recipe: `label`
- Files: `src/components/ui/label.tsx`