120k

Label

Renders an accessible label associated with controls.

Installation

pnpm dlx shadcn@latest add @force-ui-ember/label

Usage

import { Label } from '@/ui/label';
<Label @for="email">Your email address</Label>

Label in Field

For form fields, use the Field component which includes built-in FieldLabel, FieldDescription, and FieldError components.

import { Field, FieldLabel } from '@/ember-ui/field';
import { Input } from '@/ember-ui/input';
<Field>
  <FieldLabel @for="email">Your email address</FieldLabel>
  <Input id="email" />
</Field>

RTL

To enable RTL support in Force UI, see the RTL configuration guide.

API Reference

See the Radix UI Label documentation for more information.