Avatar
Explore the Avatar component and try its interactive examples.
Preview
Installation
Install the component source via shadcn Registry, the BIU CLI, or as an npm package.
First time using @biudev? Map "@biudev": "https://ui.biu.dev/r/0.1.0/{name}.json" under registries in your components.json (see setup).
Usage
Start with this example, then adjust the import path for your project.
Examples
Try each example or switch to its code.
API reference
Properties and defaults from the component source. An asterisk marks a required property; a dash means no explicit default.
AvatarSize
Also accepts properties from 'xs' & 'sm' & 'md' & 'lg' & 'xl'.
Some properties depend on the variant; consult the source for the full union.
AvatarShape
Also accepts properties from 'circle' & 'rounded' & 'square'.
Some properties depend on the variant; consult the source for the full union.
AvatarStatus
Also accepts properties from 'online' & 'busy' & 'away' & 'offline'.
Some properties depend on the variant; consult the source for the full union.
AvatarKind
Also accepts properties from 'user' & 'workspace' & 'agent'.
Some properties depend on the variant; consult the source for the full union.
AvatarVariant
Also accepts properties from 'soft' & 'solid' & 'outline'.
Some properties depend on the variant; consult the source for the full union.
AvatarProps
Also accepts properties from Omit<React.ComponentProps<'span'>, 'children'>.
AvatarGroupItem
AvatarGroupProps
Also accepts properties from Omit<React.ComponentProps<'div'>, 'children'>.
Source
Review a formatted version of the component source used by the Registry.