# P select 14

> Status select with colored dot

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

- Page, with a live preview: https://shadcn.exchange/r/coss/p-select-14
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/coss/p-select-14-light-97d4d78df3b4af7a.png
- Registry item: https://coss.com/ui/r/p-select-14.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-14.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-14.tsx`

```tsx
"use client";

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

const items = [
  { color: "bg-emerald-500", label: "Completed", value: "completed" },
  { color: "bg-blue-500", label: "In Progress", value: "in-progress" },
  { color: "bg-amber-500", label: "Pending", value: "pending" },
  { color: "bg-gray-500", label: "Cancelled", value: "cancelled" },
  { color: "bg-red-500", label: "Failed", value: "failed" },
];

export default function Particle() {
  return (
    <Select
      aria-label="Select status"
      defaultValue={items[0]}
      itemToStringValue={(item) => item.value}
    >
      <SelectTrigger>
        <SelectValue>
          {(item) => (
            <span className="flex items-center gap-2">
              <span
                aria-hidden="true"
                className={`size-2 rounded-full ${item.color}`}
              />
              <span className="truncate">{item.label}</span>
            </span>
          )}
        </SelectValue>
      </SelectTrigger>
      <SelectPopup>
        {items.map((item) => (
          <SelectItem key={item.value} value={item}>
            <span className="flex items-center gap-2">
              <span
                aria-hidden="true"
                className={`size-2 rounded-full ${item.color}`}
              />
              <span className="truncate">{item.label}</span>
            </span>
          </SelectItem>
        ))}
      </SelectPopup>
    </Select>
  );
}
```
