View as Markdown

API reference: @salmonui/layout/avatar

AvatarGroupPropsinterface

import type { AvatarGroupProps } from '@salmonui/layout/avatar';
interface AvatarGroupProps extends HTMLAttributes<HTMLDivElement> {
    readonly children?: ReactNode;
    readonly max?: number | undefined;
    readonly size?: AvatarSize | number | undefined;
    readonly shape?: AvatarShape | undefined;
    readonly localeText?: {
        readonly more?: ((count: number) => string) | undefined;
    } | undefined;
}
AvatarGroupProps members (5)
NameSignatureDescription
childrenoptionalreadonly children?: ReactNode;

Avatar children, stacked with an overlap.

maxoptionalreadonly max?: number | undefined;

Show at most this many avatars; the rest become one +N avatar.

sizeoptionalreadonly size?: AvatarSize | number | undefined;

Size (named or px) and shape of the +N avatar. Defaults 'md' / 'circle'.

shapeoptionalreadonly shape?: AvatarShape | undefined;
localeTextoptionalreadonly localeText?: { readonly more?: ((count: number) => string) | undefined; } | undefined;