import { Avatar } from '../ui/avatar'; import { defineWebComponent } from './define'; interface Props extends Record { /** Image URL/data-URI. When absent, the `fallback` initials show instead. */ src?: string; /** Alt text for the image. Defaults to `fallback`. */ alt?: string; /** Short text shown when there's no image — usually initials (e.g. "JD", "AI"). */ fallback?: string; /** Size token: `sm` | `md` (default) | `lg`. */ size?: 'sm' | 'md' | 'lg'; } /** * `` — a person/entity avatar: a rounded image that falls back to * initials when there's no `src`. This is an *identity* badge (the thing next to * a message or in a conversation list), not a generic icon — for a glyph, use an * `icon` prop on another element. * * ```html * * * ``` */ defineWebComponent('kai-avatar', { src: undefined, alt: undefined, fallback: '', size: 'md', }, (props) => ( ));