UNPKG

@public-ui/components

Version:

Contains all web components that belong to KoliBri - The accessible HTML-Standard.

22 lines (11 loc) 1.49 kB
# kol-avatar <!-- Auto Generated Below --> ## Overview The **Avatar** component displays either a small image of the user or their initials if no image is available. ## Properties | Property | Attribute | Description | Type | Default | | --------------------- | --------- | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ----------- | | `_color` | `_color` | Defines the backgroundColor and foregroundColor. | `string \| undefined \| { backgroundColor: string; foregroundColor: string; }` | `undefined` | | `_label` _(required)_ | `_label` | Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.). | `string` | `undefined` | | `_src` | `_src` | Sets the image `src` attribute to the given string. | `string \| undefined` | `undefined` | ----------------------------------------------