# V select 8

> Basic select

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

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

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

const availablePlans = [
  { label: "Free", value: "free" },
  { label: "Pro", value: "pro" },
  { label: "Team", value: "team" },
];

const unavailablePlans = [
  { label: "Enterprise", value: "enterprise" },
  { label: "Custom", value: "custom" },
];

const placeholder = { label: "Select a plan", value: null };
const allItems = [placeholder, ...availablePlans, ...unavailablePlans];

export default function Component() {
  return (
    <Select items={allItems}>
      <SelectTrigger className="w-48">
        <SelectValue />
      </SelectTrigger>
      <SelectPopup>
        {availablePlans.map((item) => (
          <SelectItem key={item.value} value={item}>
            {item.label}
          </SelectItem>
        ))}
        <SelectSeparator />
        {unavailablePlans.map((item) => (
          <SelectItem disabled key={item.value} value={item}>
            {item.label}
            <span className="ms-auto text-muted-foreground text-xs">
              Contact us
            </span>
          </SelectItem>
        ))}
      </SelectPopup>
    </Select>
  );
}
```
