# P select 18

> Select with description in options only

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

- Page, with a live preview: https://shadcn.exchange/r/coss/p-select-18
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/coss/p-select-18-light-6125669e190cda96.png
- Registry item: https://coss.com/ui/r/p-select-18.json
- Categories: select
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://coss.com/ui/r/p-select-18.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: `@coss/select`

## Files

### `registry/default/particles/p-select-18.tsx`

```tsx
"use client";

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

const items = [
  {
    description: "Ideal for individuals",
    label: "Standard Plan",
    value: "standard",
  },
  { description: "For professional users", label: "Pro Plan", value: "pro" },
  {
    description: "Built for large teams",
    label: "Enterprise Plan",
    value: "enterprise",
  },
];

export default function Particle() {
  return (
    <Select
      aria-label="Select plan"
      defaultValue={items[1]}
      itemToStringValue={(item) => item.value}
    >
      <SelectTrigger>
        <SelectValue>
          {(item) => <span className="truncate">{item.label}</span>}
        </SelectValue>
      </SelectTrigger>
      <SelectPopup alignItemWithTrigger={false}>
        {items.map((item) => (
          <SelectItem key={item.value} value={item}>
            <span className="flex flex-col">
              <span className="truncate">{item.label}</span>
              <span className="truncate text-muted-foreground text-xs">
                {item.description}
              </span>
            </span>
          </SelectItem>
        ))}
      </SelectPopup>
    </Select>
  );
}
```
