GitHub

/ avatar

Avatar

@kumiki/atelier/avatar

Layer 5 preview — styled Avatar with size vocabulary (sm/md/lg).

This component, layer by layer

Styled, copy-paste presets (preview). Run pnpm kumiki add to drop the source into your project, then edit freely.

Live preview

Live preview…

Install
pnpm add @kumiki/atelier
Image with initials fallback
<script lang="ts">
  import { Tailwind as Avatar } from '@kumiki/atelier/avatar';
</script>

<Avatar.Root size="md">
  <Avatar.Image src="/u/123.jpg" alt="Akari Suzuki" />
  <Avatar.Fallback>AS</Avatar.Fallback>
</Avatar.Root>

/ accessibility

Accessibility

axe-core — run on every PR (LTR + RTL × every documented state).

Keyboard

No component-specific keymap. Inherits standard browser focus / activation behaviour.

Test discipline

  • axe-core — run on every PR (LTR + RTL × every documented state).
  • APG keyboard tests — Playwright, hand-written per pattern.
  • VoiceOver / NVDA — Guidepup nightly schedule.
  • Type-level required names — title / aria-label / aria-labelledby.