Team directory
Searchable people with roles and status.
9 of 9 people
When to use
- Finding someone in an organisation.
When not to use
- A few people.
Installation
terminal
pnpm dlx shadcn@latest add @caliper/team-directory
Adds its 5 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
API reference
TeamDirectory
7 props
PropTypeDefaultDescription
people *readonly TeamPerson[]—
teamTonesPartial<Record<string, "blue" | "violet" | "rose" | "orange" | "amber" | "green" | "teal" | "slate">>—A hue per team, e.g. { Design: "violet" }; a team without one keeps the neutral badge.
onSelect((person: TeamPerson) => void)—
labelstring"Team directory"
loadingboolean—
errorstring—
classNamestring—
Keyboard
- No custom key handling; Tab and the native activation keys do the work.
Accessibility
It exposes group, status and alert semantics, with aria-label, aria-hidden, aria-pressed and aria-busy kept in step with state. Changes that matter are announced through a live region.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/team-directory.mdThe index of every part is at /llms.txt.