Avatars are used to represent a user or a brand. They are used in the header, sidebar, and in the chat.
- Adds a fallback if the image is not available
- SSR compatible
The root component for the Avatar.
| Prop | Type | Default |
|---|---|---|
className | string | -- |
customRootClass | string | -- |
asChild | boolean | false |
children | React.ReactNode | null |
size | string | `` |
variant | string | `` |
color | string | `` |
The image component for the Avatar.
| Prop | Type | Default |
|---|---|---|
src | string | -- |
alt | string | '' |
The fallback component for the Avatar when the image fails to load.
| Prop | Type | Default |
|---|---|---|
children | React.ReactNode | -- |
className | string | -- |
asChild | boolean | false |