Foundations
Components
- Accordion
- Alert Dialog
- Avatar
- Badge
- Banner
- BreadcrumbSOON
- Button
- Button Group
- Calendar
- Callout
- Card
- Checkbox
- CodeblockSOON
- Color Picker
- Container
- Control Group
- Dialog
- Dropdown
- File Uploader
- FlexBox
- FormSOON
- Grid View
- IconSOON
- ImageSOON
- Input
- Link
- List
- MenuSOON
- PaginationSOON
- Popover
- Progress
- Radio
- Section
- Select
- Separator
- Skeleton
- SliderSOON
- SpinnerSOON
- Switch
- Table
- Tabs
- Tag
- Textarea
- ToastSOON
- Tooltip
Avatar
Bring your users to life! Our Avatar gives your user a face, or an icon, or initials. You choose, we displayExample
API Reference
It builds on top of Radix-UI Avatar
Component | Description |
---|---|
Avatar | Your digital persona. A visual representation, typically an image or an icon, that uniquely identifies a user or an entity in your UI. |
AvatarGroup | The social circle. A component that clusters multiple Avatars together, perfect for displaying group or team members in your UI. |
Component Properties
Avatar
Prop | Type | Default | Explanation |
---|---|---|---|
size | string | md | The size of the Avatar. |
color | string | default | The color of the Avatar. |
shape | string | circle | The shape of the Avatar. |
shadow | boolean | true | Whether to display a shadow around the Avatar. |
inactive | boolean | false | Whether to display the Avatar as inactive. |
src | string | - | Image source for the Avatar. |
alt | string | - | Alternate text for the Avatar image. |
AvatarGroup
Prop | Type | Default | Explanation |
---|---|---|---|
limit | number | - | The maximum number of Avatars to display. |
number | number | The number of Avatars that are not displayed. | The number that shows up when the number of Avatars exceeds the limit. |
colorOfNumber | string | dark | The color of the number displayed when the number of Avatars |