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/label

Examples

Live previews render through the docs app's PandaCSS codegen.

Theme
<Label htmlFor="email">Email</Label>
Theme
<Label required htmlFor="name">
  Name
</Label>
Theme
<Label size="lg" htmlFor="bio">
  About you
</Label>

Props

Public component props extracted from the source TypeScript types.

PropTypeRequiredDefaultDescription
`required``boolean`No--
`size``LabelSize`No--

Variants

Variant axes exposed by the underlying PandaCSS recipe or slot recipe.

VariantValues
`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`