# V separator 9

> Basic separator

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

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

## Install

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

## Files

### `registry/default/variants/v-separator-9.tsx`

```tsx
import { Separator } from "@/registry/default/ui/separator";

const sections = [
  {
    items: ["Account settings", "Privacy & security", "Notifications"],
    label: "Profile",
  },
  {
    items: ["Billing", "Plans & pricing", "Invoices"],
    label: "Subscription",
  },
  {
    items: ["Help center", "Contact support"],
    label: "Support",
  },
];

export function Pattern() {
  return (
    <div className="w-full max-w-xs space-y-1">
      {sections.map((section, si) => (
        <div key={section.label}>
          {si > 0 && <Separator className="my-2" />}
          <p className="px-2 pb-1 font-medium text-muted-foreground text-xs uppercase tracking-wide">
            {section.label}
          </p>
          {section.items.map((item) => (
            <div
              className="cursor-pointer rounded-md px-2 py-1.5 text-sm hover:bg-muted"
              key={item}
            >
              {item}
            </div>
          ))}
        </div>
      ))}
    </div>
  );
}
```
