# V fieldset 2

> Personal information fieldset

A shadcn/ui block from the [@cnippet](https://ui.cnippet.dev/) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/cnippet/v-fieldset-2).

- Page, with a live preview: https://shadcn.exchange/r/cnippet/v-fieldset-2
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/cnippet/v-fieldset-2-light-c37dd831048b2a9d.png
- Registry item: https://ui.cnippet.dev/r/v-fieldset-2.json
- Categories: fieldset
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://ui.cnippet.dev/r/v-fieldset-2.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- Registry items: `@cnippet/fieldset`

## Files

### `registry/default/variants/v-fieldset-2.tsx`

```tsx
import {
  Field,
  FieldDescription,
  FieldLabel,
} from "@/registry/default/ui/field";
import { Fieldset, FieldsetLegend } from "@/registry/default/ui/fieldset";
import { Input } from "@/registry/default/ui/input";

export default function Particle() {
  return (
    <Fieldset className="flex w-full flex-col gap-6">
      <FieldsetLegend>Personal Information</FieldsetLegend>
      <div className="grid grid-cols-2 gap-4">
        <Field>
          <FieldLabel>First name</FieldLabel>
          <Input placeholder="Jane" type="text" />
        </Field>
        <Field>
          <FieldLabel>Last name</FieldLabel>
          <Input placeholder="Smith" type="text" />
        </Field>
      </div>
      <Field>
        <FieldLabel>Email address</FieldLabel>
        <Input placeholder="jane@example.com" type="email" />
        <FieldDescription>
          We&apos;ll send account-related emails here.
        </FieldDescription>
      </Field>
      <Field>
        <FieldLabel>Phone number</FieldLabel>
        <Input placeholder="+1 (555) 000-0000" type="tel" />
        <FieldDescription>
          Optional. Used for SMS notifications.
        </FieldDescription>
      </Field>
    </Fieldset>
  );
}
```
