# V fieldset 5

> Change password fieldset

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

- Page, with a live preview: https://shadcn.exchange/r/cnippet/v-fieldset-5
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/cnippet/v-fieldset-5-light-3781393398b493dc.png
- Registry item: https://ui.cnippet.dev/r/v-fieldset-5.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-5.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-5.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>Change Password</FieldsetLegend>
      <Field>
        <FieldLabel>Current password</FieldLabel>
        <Input
          autoComplete="current-password"
          placeholder="Enter current password"
          required
          type="password"
        />
        <FieldError>Current password is required.</FieldError>
      </Field>
      <Field>
        <FieldLabel>
          New password <span className="text-destructive-foreground">*</span>
        </FieldLabel>
        <Input
          autoComplete="new-password"
          minLength={8}
          placeholder="Enter new password"
          required
          type="password"
        />
        <FieldDescription>At least 8 characters.</FieldDescription>
        <FieldError>Password must be at least 8 characters.</FieldError>
      </Field>
      <Field>
        <FieldLabel>
          Confirm new password{" "}
          <span className="text-destructive-foreground">*</span>
        </FieldLabel>
        <Input
          autoComplete="new-password"
          placeholder="Re-enter new password"
          required
          type="password"
        />
        <FieldError>Passwords do not match.</FieldError>
      </Field>
    </Fieldset>
  );
}
```
