# V fieldset 6

> Payment 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-6).

- Page, with a live preview: https://shadcn.exchange/r/cnippet/v-fieldset-6
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/cnippet/v-fieldset-6-light-0c756340bee2767d.png
- Registry item: https://ui.cnippet.dev/r/v-fieldset-6.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-6.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-6.tsx`

```tsx
import {
  Field,
  FieldDescription,
  FieldError,
  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-5">
      <FieldsetLegend>Payment Information</FieldsetLegend>
      <Field>
        <FieldLabel>
          Cardholder name <span className="text-destructive-foreground">*</span>
        </FieldLabel>
        <Input
          autoComplete="cc-name"
          placeholder="Jane Smith"
          required
          type="text"
        />
        <FieldError>Cardholder name is required.</FieldError>
      </Field>
      <Field>
        <FieldLabel>
          Card number <span className="text-destructive-foreground">*</span>
        </FieldLabel>
        <Input
          autoComplete="cc-number"
          inputMode="numeric"
          placeholder="1234 5678 9012 3456"
          required
          type="text"
        />
        <FieldError>Please enter a valid card number.</FieldError>
      </Field>
      <div className="grid grid-cols-2 gap-4">
        <Field>
          <FieldLabel>
            Expiry date <span className="text-destructive-foreground">*</span>
          </FieldLabel>
          <Input
            autoComplete="cc-exp"
            placeholder="MM / YY"
            required
            type="text"
          />
          <FieldError>Invalid expiry date.</FieldError>
        </Field>
        <Field>
          <FieldLabel>
            CVC <span className="text-destructive-foreground">*</span>
          </FieldLabel>
          <Input
            autoComplete="cc-csc"
            inputMode="numeric"
            placeholder="123"
            required
            type="text"
          />
          <FieldDescription>3 or 4 digits on your card.</FieldDescription>
          <FieldError>Invalid CVC.</FieldError>
        </Field>
      </div>
    </Fieldset>
  );
}
```
