# V select 11

> With Disabled Options

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

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

## Install

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

## Files

### `registry/default/variants/v-select-11.tsx`

```tsx
import {
  Select,
  SelectItem,
  SelectPopup,
  SelectSeparator,
  SelectTrigger,
  SelectValue,
} from "@/registry/default/ui/select";

const activeRoles = [
  { label: "Owner", value: "owner" },
  { label: "Admin", value: "admin" },
  { label: "Editor", value: "editor" },
  { label: "Viewer", value: "viewer" },
];

const comingSoon = [
  { label: "Guest", value: "guest" },
  { label: "Contractor", value: "contractor" },
];

const placeholder = { label: "Select a role", value: null };
const allItems = [placeholder, ...activeRoles, ...comingSoon];

export default function Particle() {
  return (
    <Select defaultValue={activeRoles[2]} items={allItems}>
      <SelectTrigger className="w-52">
        <SelectValue />
      </SelectTrigger>
      <SelectPopup>
        {activeRoles.map((item) => (
          <SelectItem key={item.value} value={item}>
            {item.label}
          </SelectItem>
        ))}
        <SelectSeparator />
        {comingSoon.map((item) => (
          <SelectItem disabled key={item.value} value={item}>
            {item.label}
            <span className="ms-1.5 text-muted-foreground text-xs">
              (coming soon)
            </span>
          </SelectItem>
        ))}
      </SelectPopup>
    </Select>
  );
}
```
