# V fieldset 8

> Basic fieldset

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

- Page, with a live preview: https://shadcn.exchange/r/cnippet/v-fieldset-8
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/cnippet/v-fieldset-8-light-010a1d4b940954c4.png
- Registry item: https://ui.cnippet.dev/r/v-fieldset-8.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-8.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-8.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 function Pattern() {
  return (
    <Fieldset className="flex w-full max-w-sm flex-col gap-5">
      <FieldsetLegend>Team Member</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>Work email</FieldLabel>
        <Input placeholder="jane@company.com" type="email" />
        <FieldDescription>
          An invite will be sent to this address.
        </FieldDescription>
      </Field>
      <Field>
        <FieldLabel>Job title</FieldLabel>
        <Input placeholder="e.g. Product Designer" type="text" />
      </Field>
    </Fieldset>
  );
}
```
