npx shadcn@latest add https://sdk-components.thesqd.com/r/assignees.jsonimport { Assignees } from "@/components/blocks/assignees";import { Assignees } from "@/components/blocks/assignees";
export function Example() {
return (
<Assignees
title="Your Squad"
defaultOpen
assignees={[
{ name: "Blake Riley", initials: "BR", avatarSrc: "/images/avatar/blake-riley.jpg" },
{ name: "Benedict Doherty", initials: "BD", avatarSrc: "/images/avatar/benedict-doherty.jpg" },
]}
/>
);
}Assignees (CollapsibleSection)
├── title="Assignees" (heading on the trigger row)
├── variant="outline | default | ghost" (passed through to CollapsibleSection)
├── defaultOpen (start expanded)
└── assignees={[…]}
├── name (display string, right column)
├── initials (fallback when no avatarSrc)
├── avatarSrc (Avatar image URL — left column)
├── alt (override avatar alt; defaults to name)
└── meta (optional secondary line below the name)Assignees
| Prop | Type | Default | Description |
|---|---|---|---|
title | ReactNode | "Assignees" | Heading rendered on the CollapsibleSection trigger row. |
assignees | AssigneeSpec[] | — | Rows rendered in the DescriptionList. See the AssigneeSpec table below. |
variant | "default" | "outline" | "ghost" | "outline" | CollapsibleSection visual style. |
defaultOpen | boolean | — | Render the section expanded on mount. |
className | string | — | Override or extend the wrapper classes. |
AssigneeSpec
| Prop | Type | Default | Description |
|---|---|---|---|
name | string | — | Display name shown to the right of the avatar. |
initials | string | — | Initials fallback when no `avatarSrc` is set. |
avatarSrc | string | — | Image URL passed to `<Avatar src>`. |
alt | string | — | Override the avatar alt text. Defaults to `name`. |
meta | ReactNode | — | Optional secondary line below the name (role, email, etc.). |