Menu
View as Markdown

Components

Avatar

Static fixture output for the Avatar component contract.

Avatar keeps native image loading visible and leaves initials fallback markup in the document.

Ada LovelaceALGrace HopperLW
data-stateloading, loaded, error
keyboardNo custom keyboard handling
change reasonsimage-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 avatar when 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.