import type * as React from 'react';
import type { AvatarSize } from "../Avatar/index.js";
export type AvatarStackOverlapSize = 's' | 'm' | 'l';
export interface AvatarStackProps {
/** Amount of avatars to be shown before more button. Default 3. */
max?: number;
/** Total amount of items, used to calculate number of not rendered avatars */
total?: number;
/**
* How much each avatar should overlap next one
* | Avatar sizes | Recommended overlap |
* | :----------: | :-----------------: |
* | `xs`-`m` | `s` |
* | `l` | `m` |
* | `xl` | `l` |
*/
overlapSize?: AvatarStackOverlapSize;
/**
* Size for control displaying count of extra avatars
*/
size?: AvatarSize;
className?: string;
/**
* Children would be wrapped for "stacking"
* @example
*
*
*
*
*/
children?: React.ReactNode;
/**
* Custom render for control displaying extra data
* @example
* }>
*
*
*/
renderMore?: (options: {
count: number;
}) => React.ReactElement;
}
export type AvatarStackMoreProps = Pick, 'className' | 'aria-label'> & {
count: number;
size?: AvatarSize;
borderColor?: string;
};
export type AvatarStackMoreButtonProps = Pick, 'onClick'> & AvatarStackMoreProps & {
badgeClassName?: string;
};