Components
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.
Loading preview...
'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>
);
}
Loading preview...
Loading preview...
Loading preview...
Loading preview...
Loading preview...
Loading preview...
Part of Astryx — browse the full library on 21st.dev.