BaseAvatar

The person, in the corner where the account lives.

Import it from rei-kit: import { BaseAvatar } from 'rei-kit'

Open BaseAvatar in the live documentation, where every prop below is a control you can change, in four materials and ten palettes.

Usage

<script setup lang="ts">
import { BaseAvatar } from 'rei-kit'
</script>

<template>
  <BaseAvatar name="Aiko Tanaka" fallback="initials" size="lg" />
</template>

Props

Props
PropTypeRequired or defaultWhat it is for
namestring''Used for the initials and, failing a `label`, as the accessible name.
srcstring''
size'sm' | 'md' | 'lg''md'
fallback'figure' | 'initials''figure'
labelstring''Overrides the accessible name. For "Your account" rather than a person's name.

About rei-kit

rei-kit is an accessible Vue 3 and Tailwind CSS 4 component library: 106 components, themed by role rather than by colour on three independent axes — ten WCAG-checked palettes, four materials and light or dark, each switched with one attribute. Typed, tested, SSR-safe, no runtime dependencies, MIT.

pnpm add rei-kit · npm · GitHub