UNPKG

@material-ui/core

Version:

Quickly build beautiful React apps. Material-UI is a simple and customizable component library to build faster, beautiful, and more accessible React applications. Follow your own design system, or start with Material Design.

53 lines (49 loc) 1.35 kB
import * as React from 'react'; import { InternalStandardProps as StandardProps, Theme } from '@material-ui/core'; import { OverridableStringUnion } from '@material-ui/types'; import { SxProps } from '@material-ui/system'; import { AvatarGroupClasses } from './avatarGroupClasses'; export interface AvatarGroupPropsVariantOverrides {} export interface AvatarGroupProps extends StandardProps<React.HTMLAttributes<HTMLDivElement>> { /** * The avatars to stack. */ children?: React.ReactNode; /** * Override or extend the styles applied to the component. */ classes?: Partial<AvatarGroupClasses>; /** * Max avatars to show before +x. * @default 5 */ max?: number; /** * Spacing between avatars. * @default 'medium' */ spacing?: 'small' | 'medium' | number; /** * The system prop that allows defining system overrides as well as additional CSS styles. */ sx?: SxProps<Theme>; /** * The variant to use. * @default 'circular' */ variant?: OverridableStringUnion< 'circular' | 'rounded' | 'square', AvatarGroupPropsVariantOverrides >; } /** * * Demos: * * - [Avatars](https://material-ui.com/components/avatars/) * * API: * * - [AvatarGroup API](https://material-ui.com/api/avatar-group/) */ export default function AvatarGroup(props: AvatarGroupProps): JSX.Element;