Field

A field wraps form inputs with labels, descriptions, and error messages.

Installation

npx shadcn@latest add @dotui/field

Usage

import { Field, Label, Description, FieldError } from "@/components/ui/field";
<Field>
  <Label>Email</Label>
  <Input type="email" />
  <Description>We'll never share your email.</Description>
</Field>

API Reference

Missing description.

Supports all div attributes.

PropType
"horizontal" | "vertical"

Last updated on 1/13/2026

Built with passion by @mehdibha.