shadcn

Field

Forms 1

About

Here is Field component

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Field to your project and fits it to your theme.

Code

How Field is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import {
  Field,
  FieldDescription,
  FieldGroup,
  FieldLabel,
  FieldSet,
} from "@/components/ui/field-1"
import { Input } from "@/components/ui/input"

export default function FieldInput() {
  return (
    <div className="w-full max-w-md">
      <FieldSet>
        <FieldGroup>
          <Field>
            <FieldLabel htmlFor="username">Username</FieldLabel>
            <Input id="username" type="text" placeholder="Max Leiter" />
            <FieldDescription>
              Choose a unique username for your account.
            </FieldDescription>
          </Field>
          <Field>
            <FieldLabel htmlFor="password">Password</FieldLabel>
            <FieldDescription>
              Must be at least 8 characters long.
            </FieldDescription>
            <Input id="password" type="password" placeholder="********" />
          </Field>
        </FieldGroup>
      </FieldSet>
    </div>
  )
}

Dependencies

More by shadcn

View all
  • Navigation menu

    Navigation menu

    786
  • Calendar with time pressets

    Calendar with time pressets

    516
  • Sidebar

    Sidebar

    350
  • Sonner

    Sonner

    238
  • Chart

    Chart

    222
  • Icons

    Icons

    195
  • Dropdown Menu

    Dropdown Menu

    154
  • Calendar with event slots

    Calendar with event slots

    123

More in Forms

View all
  • Premium Auth

    Premium Auth

    532
  • Contact Card

    Contact Card

    1K
  • Book A Demo 1

    Book A Demo 1

    77
  • Login Card

    Login Card

    29
  • Login 2

    Login 2

    8
  • Card Studio

    Card Studio

    43
  • Form

    Form

    17
  • Split Sign In Form

    Split Sign In Form

    76