Skip to Content
Kokonut UI

IN-03Inputs

Team Selector

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

Install with
motion, lucide-react

PROInviting your team? Team Invite Card is in Kokonut UI Pro

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 Copy code above 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

members
TeamMember[]Default built-in

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

defaultValue
numberDefault 3
value
number

Controlled seat count. Pair it with onChange.

min
numberDefault 1

Smallest allowed seat count. Defaults to 1.

max
numberDefault 12

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

onChange
(size: number) => void
label
stringDefault "Team size"
pricePerSeat
number

When set, shows the per-seat price and the monthly total.

currency
stringDefault "USD"

ISO 4217 code for the price line. Defaults to "USD".

className
string

Extra classes for the root element.

TeamMember

idrequired
string
namerequired
string
avatarUrl
string

Optional photo. Without it the avatar shows the member's initials.

Dependencies

NeedsVersionComes from
motion^12.23.25npm, installed by the CLI
lucide-react^0.556.0npm, installed by the CLI
cn from lib/utils.tsshadcn init
React19Your app
Tailwind CSS4Your app

No provider, font or global CSS to set up: the file works as soon as it lands.