Sections
Components
- AlertBanner
- AlertDialog
- Alert
- Avatar
- Badge
- Breadcrumb
- Button
- CalendarIcon
- CellLayout
- CellLink
- Checkbox
- Collapse
- ContentSwitcher
- ControlLabel
- DatePicker
- Dialog
- Divider
- Drawer
- EmptyCell
- EmptyState
- Empty
- ErrorOverlay
- FilterBar
- FilterChips
- Flex
- GridLayout
- HumanisedDate
- Icon
- InputDuration
- InputField
- Input
- Label
- Loader
- MoreActions
- NumberInput
- OutsideClickHandler
- PageLoader
- Page
- Popconfirm
- Popover
- ProgressPie
- Progress
- RadioButtonGroup
- RadioGroup
- Radio
- RelativeTime
- Resizable
- SearchInput
- Select
- SkeletonText
- Skeleton
- Space
- SquadAvatarList
- StatusPicker
- Stepper
- Switch
- TableLight
- Tabs
- Tag
- Text
- Textarea
- Toast
- Tooltip
- TriggerSelect
- Upload
import { SquadAvatarList } from "@/rl-ui";
<SquadAvatarList
squad={{ users: [{ id: "1", name: "Ada" }, { id: "2", name: "Alan" }] }}
size={32}
/>Examples#
Overflow count#
import { SquadAvatarList } from "@/rl-ui";
<SquadAvatarList
maxCount={2}
size={24}
squad={{
users: [
{ id: "1", name: "Ada" },
{ id: "2", name: "Alan" },
{ id: "3", name: "Grace" },
{ id: "4", name: "Edsger" },
],
}}
/>API#
| Prop | Type | Default | Description |
|---|---|---|---|
squad | { users?: SquadMember[]; teams?: SquadMember[] } | — | People to render (required). |
size | 16 | 20 | 24 | 32 | 24 | Avatar size. |
maxCount | number | 2 | Max faces before +N overflow. |