Avatar
An image element with a fallback for representing the user.
Examples
import { Avatar } from 'kalki-design'
<Avatar>Click me</Avatar>Installation
npx kalki-design add avatarUsage
import { Avatar } from 'kalki-design'
export default function Example() {
return <Avatar />
}API Reference
| Name | Type | Default | Description |
|---|---|---|---|
Namesrc | Typestring | Default— | DescriptionThe image source URL. |
Namealt | Typestring | Default'Avatar' | DescriptionAlternative screen reader text. |
Nameinitials | Typestring | Default— | DescriptionInitials to show if the image is missing. |
Namesize | Type'xs' | 'sm' | 'md' | 'lg' | 'xl' | Default'md' | DescriptionSize of the avatar. |
Nameshape | Type'circle' | 'square' | Default'circle' | DescriptionShape of the avatar. |
Namestatus | Type'online' | 'offline' | 'away' | 'busy' | 'none' | Default— | DescriptionAn optional status indicator bubble. |