Field
Combine labels, controls, and help text to compose accessible form fields and grouped inputs.
Installation
pnpm dlx shadcn@latest add https://basecn.dev/r/field.json
If you are using a namespaced registry, you can use the following command:
pnpm dlx shadcn@latest add @basecn/field
Examples
Input
Textarea
Select
Select your department or area of work.
Slider
Set your budget range ($200 - 800).
Fieldset
Checkbox
Your Desktop & Documents folders are being synced with iCloud Drive. You can access them from other devices.
Radio
Switch
Enable multi-factor authentication. If you do not have a two-factor device, you can use a one-time code sent to your email.
Choice Card
Field Group
Migrating from Radix UI
Common Migration Steps
All components share several migration patterns when moving from Radix UI to Base UI. Before proceeding with component-specific changes, review the essential migration patterns.
Familiarizing yourself with these patterns will make the component-specific migration steps much clearer.