@metamask/design-system-react
Version:
Design system react ui components
1 lines • 916 B
Source Map (JSON)
{"version":3,"file":"AvatarIcon.types.cjs","sourceRoot":"","sources":["../../../src/components/AvatarIcon/AvatarIcon.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { AvatarIconSize, AvatarIconSeverity } from '../../types';\nimport type { AvatarBaseProps } from '../AvatarBase';\nimport type { IconName, IconProps } from '../Icon';\n\nexport type AvatarIconProps = Omit<AvatarBaseProps, 'children' | 'size'> & {\n /**\n * Required icon name from the icon set\n */\n iconName: IconName;\n /**\n * Optional props to be passed to the Icon component\n */\n iconProps?: Omit<IconProps, 'name'>;\n /**\n * Optional prop to control the size of the avatar\n *\n * @default AvatarIconSize.Md\n */\n size?: AvatarIconSize;\n /**\n * Optional prop to control the severity of the avatar\n *\n * @default AvatarIconSeverity.Neutral\n */\n severity?: AvatarIconSeverity;\n};\n"]}