# V fieldset 9

> 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-9).

- Page, with a live preview: https://shadcn.exchange/r/cnippet/v-fieldset-9
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/cnippet/v-fieldset-9-light-bac4202b673b1c12.png
- Registry item: https://ui.cnippet.dev/r/v-fieldset-9.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-9.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-9.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";
import { Textarea } from "@/registry/default/ui/textarea";

export function Pattern() {
  return (
    <Fieldset className="flex w-full max-w-sm flex-col gap-5">
      <FieldsetLegend>Support Request</FieldsetLegend>
      <Field>
        <FieldLabel>Subject</FieldLabel>
        <Input placeholder="Brief summary of your issue" type="text" />
      </Field>
      <Field>
        <FieldLabel>Description</FieldLabel>
        <Textarea
          className="min-h-24 resize-y"
          placeholder="Describe what happened and steps to reproduce…"
        />
        <FieldDescription>
          Include any error messages or screenshots if relevant.
        </FieldDescription>
      </Field>
      <Field>
        <FieldLabel>Your email</FieldLabel>
        <Input placeholder="you@example.com" type="email" />
        <FieldDescription>We'll reply to this address.</FieldDescription>
      </Field>
    </Fieldset>
  );
}
```
