import { Avatar, AvatarGroup } from './avatar'; import { DemoStory } from '../../demo/demo-types'; export const avatarDemo: DemoStory = { id: 'avatarDemo', text: 'Avatar', args: { maxCount: 3, size: 'md', shape: 'circle', }, argTypes: { maxCount: { control: 'number', description: 'Maximum visible avatars in a group', }, size: { control: 'select', options: ['xs', 'sm', 'md', 'lg', 'xl'], description: 'Size of the avatars', }, shape: { control: 'select', options: ['circle', 'rounded', 'square'], description: 'Shape of the avatars', }, }, render: (args: any) => { const css = { display: 'flex', flexDirection: 'column', gap: '24px', padding: '24px', '.section-title': { fontSize: '18px', fontWeight: 'bold', marginBottom: '12px', color: 'var(--primary-color)', }, '.demo-row': { display: 'flex', flexWrap: 'wrap', gap: '16px', alignItems: 'center', }, }; return (
{/* Controllable Standalone */}
Controlled by Panel (Size: {args.size}, Shape: {args.shape})
{/* Sizes */}
Sizes (Static)
{/* Shapes */}
Shapes (Static)
{/* Status */}
Status Indicators
{/* Group */}
Avatar Group (maxCount: {args.maxCount}, size: {args.size})
); }, code: `import { Avatar, AvatarGroup } from 'lupine.components/component-pool'; // Standalone // Group `, };