Skip to content

Avatar

Initials on a filled graphite surface with a soft top light and fine grain, or one of three seeded monochrome faces: glow (soft pools of light in smoke), contour (fine topographic lines) and eclipse (a crescent of rim light).

Download
Customize

Status is a small dot cut out of the rim: live is the accent with a slow pulse, idle is a still grey. Stacks overlap with a cut-out and fan apart on hover or focus as a ripple, with the rest counted in a mono +n.

Install

npx shadcn@latest add https://obsydeui.com/r/avatar.json

Usage

Import it from where the CLI puts it, or copy the files below by hand.

import { Avatar } from '@/components/obsyde/ember/avatar/Avatar';

export function Example() {
  return (
    <Avatar />
  );
}

Files

Plain React, TypeScript and CSS. No dependencies. The download keeps these paths.

  • ember/avatar/Avatar.tsxcomponent
  • ember/avatar/avatar.cssstyles
  • ember/avatar/AvatarDemo.tsxdemo
  • ember/basics-kit/kit.tsshared
  • ember/shared/spring.tsshared
  • ember/shared/accent.tsshared
  • ember/shared/ember.cssshared

API

PropTypeDefault
accentAccent'ember' | 'volt' | 'arc''ember'
faceFace'mixed' | 'initials' | 'glow' | 'contour' | 'eclipse''mixed'
sizeSizenumber48
statusStatus'live' | 'idle' | 'none''live'
countPeoplenumber7
maxMax shownnumber5
fannedHeld openbooleanfalse