UNPKG

@metamask/design-system-react-native

Version:
68 lines 2.33 kB
import type { ViewProps } from "react-native/index.js"; import type { AvatarGroupSize, AvatarGroupVariant } from "../../types/index.mjs"; import type { AvatarAccountProps } from "../AvatarAccount/index.mjs"; import type { AvatarBaseProps } from "../AvatarBase/index.mjs"; import type { AvatarFaviconProps } from "../AvatarFavicon/index.mjs"; import type { AvatarNetworkProps } from "../AvatarNetwork/index.mjs"; import type { AvatarTokenProps } from "../AvatarToken/index.mjs"; type BaseAvatarGroupProps = { /** * Optional enum to select between Avatar Group sizes. * * @default AvatarGroupSize.Md */ size?: AvatarGroupSize; /** * Optional enum to select max number of Avatars visible, * before the overflow counter being displayed * * @default 4 */ max?: number; /** * Optional prop to reverse the direction of the AvatarGroup */ isReverse?: boolean; /** * Optional prop to pass additional AvatarBase props to the overflow Text element */ overflowTextProps?: AvatarBaseProps; /** * Optional prop to add twrnc overriding classNames. */ twClassName?: string; } & ViewProps; /** * AvatarGroup props. */ export type AvatarGroupProps = BaseAvatarGroupProps & ({ variant: AvatarGroupVariant.Account; /** * A list of Avatars to be horizontally stacked. * Note: AvatarGroupProps's size prop will overwrite each individual avatarProp's size. */ avatarPropsArr: AvatarAccountProps[]; } | { variant: AvatarGroupVariant.Favicon; /** * A list of Avatars to be horizontally stacked. * Note: AvatarGroupProps's size prop will overwrite each individual avatarProp's size. */ avatarPropsArr: AvatarFaviconProps[]; } | { variant: AvatarGroupVariant.Network; /** * A list of Avatars to be horizontally stacked. * Note: AvatarGroupProps's size prop will overwrite each individual avatarProp's size. */ avatarPropsArr: AvatarNetworkProps[]; } | { variant: AvatarGroupVariant.Token; /** * A list of Avatars to be horizontally stacked. * Note: AvatarGroupProps's size prop will overwrite each individual avatarProp's size. */ avatarPropsArr: AvatarTokenProps[]; }); export {}; //# sourceMappingURL=AvatarGroup.types.d.mts.map