Meta

Astryx Avatar

Component

About

Avatar represents a person or team with a profile photo, initials, or a default icon, from Meta's Astryx design system. Use it in comment headers, contact lists, chat messages, user cards, and anywhere you need to identify someone visually. Includes AvatarStatusDot and AvatarGroup with overflow.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Astryx Avatar to your project and fits it to your theme.

Code

How Astryx Avatar is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

'use client';

import Avatar from '@/components/ui/astryx-avatar';
import {Theme} from '@astryxdesign/core/theme';
import {neutralTheme} from '@astryxdesign/theme-neutral/built';
import {Stack} from '@astryxdesign/core/Layout';

const CDN = 'https://lookaside.facebook.com/assets/astryx';

export default function AvatarWithImage() {
  return (
    <Theme theme={neutralTheme}>
      <div
        style={{
          minHeight: '100dvh',
          display: 'grid',
          placeItems: 'center',
          padding: 24,
        }}>
        <Stack direction="horizontal" gap={4} vAlign="center">
          <Avatar src={`${CDN}/DATA-Ami-Pena.png`} name="Ami Pena" size="tiny" />
          <Avatar
            src={`${CDN}/DATA-Ana-Thomas.png`}
            name="Ana Thomas"
            size="small"
          />
          <Avatar
            src={`${CDN}/DATA-Daniela-Gimenez.png`}
            name="Daniela Gimenez"
            size="medium"
          />
          <Avatar
            src={`${CDN}/DATA-Gabriela-Fernandez.png`}
            name="Gabriela Fernandez"
            size="large"
          />
        </Stack>
      </div>
    </Theme>
  );
}

Dependencies

More by Meta

View all
  • Astryx Banner

    Astryx Banner

    54
  • Astryx Aspect Ratio

    Astryx Aspect Ratio

    26
  • Astryx Button Group

    Astryx Button Group

    22
  • Astryx Badge

    Astryx Badge

    22
  • Astryx Toggle Button

    Astryx Toggle Button

    15
  • Astryx Avatar Group

    Astryx Avatar Group

    7
  • Astryx Button

    Astryx Button

    4
  • Astryx Blockquote

    Astryx Blockquote

    3