Default
For form fields, use the Field component which includes built-in label, description, and error handling.
Installation
Section titled “Installation”pnpm dlx shadcn@latest add pxl-ui/registry/label
Copy and paste the following code into your project.
Update the import paths to match your project setup.
import { Label } from "@/components/ui/pxl/label"<Label htmlFor="email">Your email address</Label>Label in Field
Section titled “Label in Field”For form fields, use the Field component which
includes built-in FieldLabel, FieldDescription, and FieldError components.
<Field> <FieldLabel htmlFor="email">Your email address</FieldLabel> <Input id="email" /></Field>