# V collapsible 3

> Collapsible animated card

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

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

## Install

```bash
npx shadcn@latest add https://ui.cnippet.dev/r/v-collapsible-3.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/collapsible`

## Files

### `registry/default/variants/v-collapsible-3.tsx`

```tsx
import { ChevronDownIcon } from "lucide-react";
import { Card, CardContent } from "@/registry/default/ui/card";
import {
  Collapsible,
  CollapsibleContent,
  CollapsibleTrigger,
} from "@/registry/default/ui/collapsible";

export function Pattern() {
  return (
    <div className="h-40 w-full max-w-xs">
      <Card className="py-0">
        <CardContent className="px-3">
          <Collapsible>
            <CollapsibleTrigger className="flex w-full cursor-pointer items-center justify-between gap-4 text-sm">
              <span>How do I reset my password?</span>
              <ChevronDownIcon
                aria-hidden="true"
                className="size-4 shrink-0 in-data-[state=open]:rotate-180 text-muted-foreground transition-transform"
              />
            </CollapsibleTrigger>
            <CollapsibleContent className="data-[state=closed]:animate-collapsible-up data-[state=open]:animate-collapsible-down">
              <div className="pt-3 text-muted-foreground text-sm">
                You can reset your password by clicking the &quot;Forgot
                Password&quot; link on the login page. We&apos;ll send you an
                email with instructions to create a new password.
              </div>
            </CollapsibleContent>
          </Collapsible>
        </CardContent>
      </Card>
    </div>
  );
}
```
