# V select 1

> 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-1).

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

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

const timezones = [
  { label: "Select timezone", value: null },
  { label: "Pacific Time (PT)", value: "america/los_angeles" },
  { label: "Mountain Time (MT)", value: "america/denver" },
  { label: "Central Time (CT)", value: "america/chicago" },
  { label: "Eastern Time (ET)", value: "america/new_york" },
  { label: "Greenwich Mean Time (GMT)", value: "europe/london" },
  { label: "Central European Time (CET)", value: "europe/paris" },
  { label: "India Standard Time (IST)", value: "asia/kolkata" },
  { label: "Japan Standard Time (JST)", value: "asia/tokyo" },
];

export default function Component() {
  return (
    <Select items={timezones}>
      <SelectTrigger className="w-64">
        <SelectValue />
      </SelectTrigger>
      <SelectPopup>
        {timezones.slice(1).map((tz) => (
          <SelectItem key={tz.value} value={tz}>
            {tz.label}
          </SelectItem>
        ))}
      </SelectPopup>
    </Select>
  );
}
```
