# Team Selector

Seat picker with a scrubbable number, generated avatars and an optional rolling price line.

Install with

```bash
npx shadcn@latest add https://kokonutui.com/r/team-selector.json
```

### Installation

Team Selector is a free, open-source React component in the Kokonut UI [Inputs collection](/content/docs/inputs/index.html). Add it with the shadcn CLI, which copies the source into `components/kokonutui/team-selector.tsx`, so the code is yours to change.

```bash
npx shadcn@latest add @kokonutui/team-selector
```

Or add it by hand: install its packages, then copy the source from the above code into `components/kokonutui/team-selector.tsx`.

```bash
npm install motion lucide-react
```

### Usage

```javascript
import TeamSelector from "@/components/kokonutui/team-selector";

export default function Example() {
  return <TeamSelector pricePerSeat={12} />;
}
```

### Props

- `members`  
  `TeamMember[]`  
  Default `built-in`

Known people. Seats beyond this list show as open, numbered slots.

- `defaultValue`  
  `number`  
  Default `3`

- `value`  
  `number`

Controlled seat count. Pair it with `onChange`.

- `min`  
  `number`  
  Default `1`

Smallest allowed seat count. Defaults to 1.

- `max`  
  `number`  
  Default `12`

Largest allowed seat count, independent of `members`. Defaults to 12.

- `onChange`  
  `(size: number) => void`

- `label`  
  `string`  
  Default `
