# Select With Placeholder - With placeholder

> Select with placeholder text before a value is chosen.

A shadcn/ui block from the [@shadcnblocks](https://shadcnblocks.com) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/shadcnblocks/select-select-with-placeholder).

- Page, with a live preview: https://shadcn.exchange/r/shadcnblocks/select-select-with-placeholder
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/shadcnblocks/select-select-with-placeholder-light-206d83e4f22d07f2.png
- Registry item: https://shadcnblocks.com/r/select-select-with-placeholder.json
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://shadcnblocks.com/r/select-select-with-placeholder.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: `select`

## Files

### `example/select/select-with-placeholder.tsx`

```tsx
import {
  Select,
  SelectContent,
  SelectItem,
  SelectTrigger,
  SelectValue,
} from "@/components/ui/select";

export const title = "With Placeholder";

const Example = () => (
  <div className="w-full max-w-md">
    <Select>
      <SelectTrigger className="bg-background">
        <SelectValue placeholder="Choose language" />
      </SelectTrigger>
      <SelectContent align="start" position="popper">
        <SelectItem value="es">Spanish</SelectItem>
        <SelectItem value="fr">French</SelectItem>
        <SelectItem value="pt">Portuguese</SelectItem>
        <SelectItem value="ko">Korean</SelectItem>
      </SelectContent>
    </Select>
  </div>
);

export default Example;
```
