Team Selector - React Component | Kokonut UI

Team Selector

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

Install with

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. Add it with the shadcn CLI, which copies the source into components/kokonutui/team-selector.tsx, so the code is yours to change.

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.

npm install motion lucide-react

Usage

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

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

Props

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

Controlled seat count. Pair it with onChange.

Smallest allowed seat count. Defaults to 1.

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