Menu
Components
Avatar
Static fixture output for the Avatar component contract.
Avatar keeps native image loading visible and leaves initials fallback markup in the document.
| data-state | loading, loaded, error |
|---|---|
| keyboard | No custom keyboard handling |
| change reasons | image-load, image-error, programmatic |
Usage
A user image with an automatic fallback to initials or a placeholder when it fails to load.
- Import the versioned component from
@kovojs/ui/avatar. - Copy the source into your app with
kovo add avatarwhen product code should own the implementation.
Source
- Package source:
packages/ui/src/avatar.tsx - Gallery fixture:
examples/gallery/src/demo-fixtures.tsx
Behavior contract
The rendered fixture above includes the component contract table. Interactive pages compile the authored TSX demo and then lift the same contract table from the static fixture, so the visible behavior and documented ARIA/data-state surface stay together.