Indielayer UI - Vue.js 3 / Nuxt.js 3 UI Library with Tailwind CSS 4. ⚡️  Build and prototype fast web applications.

Indielayer
Indielayer UIIndielayer UI
UI
v2.1.0

Avatar

Displays a user's photo, initials, or icon in a compact frame. Use avatars in lists, headers, and comments to identify people at a glance.

#
Usage

Basic example with common props.

JS
AC
J

#
Variants

Color and style variants.

JS
JS
JS

#
Size

Size options from xs to lg.

#API

Avatar

props

Name
Description
Type
Default
Values
Required
size
Control size. One of xs, sm, md, lg, xl.
String
md
xssmmdlgxl
color
Theme or CSS color used for the control accents.
String
primary
tag
Root element tag.
String
div
name
Display name used to derive initials when no image is loaded.
String
alt
Alt text for the image when `image` is set.
String
image
Image URL. Falls back to initials or the avatar icon if unloadable.
String
outlined
Outline style with a transparent fill.
Boolean
false
rounded
Fully rounded corners (circle).
Boolean
false

slots

Name
Description
avatarIcon
Fallback icon when no name or image is available.