@metamask/design-system-react
Version:
Design system react ui components
26 lines • 831 B
text/typescript
import type { AvatarIconSize, AvatarIconSeverity } from "../../types/index.mjs";
import type { AvatarBaseProps } from "../AvatarBase/index.mjs";
import type { IconName, IconProps } from "../Icon/index.mjs";
export type AvatarIconProps = Omit<AvatarBaseProps, 'children' | 'size'> & {
/**
* Required icon name from the icon set
*/
iconName: IconName;
/**
* Optional props to be passed to the Icon component
*/
iconProps?: Omit<IconProps, 'name'>;
/**
* Optional prop to control the size of the avatar
*
* @default AvatarIconSize.Md
*/
size?: AvatarIconSize;
/**
* Optional prop to control the severity of the avatar
*
* @default AvatarIconSeverity.Neutral
*/
severity?: AvatarIconSeverity;
};
//# sourceMappingURL=AvatarIcon.types.d.mts.map