@metamask/design-system-react
Version:
Design system react ui components
26 lines • 882 B
text/typescript
import type { ComponentProps } from "react";
import type { IconName, IconProps } from "../Icon/index.cjs";
/**
* BadgeIcon component props.
*/
export type BadgeIconProps = ComponentProps<'div'> & {
/**
* Required prop to specify an icon to show
*/
iconName: IconName;
/**
* Optional prop to pass additional properties to the icon
*/
iconProps?: Omit<IconProps, 'name'>;
/**
* Optional prop for additional CSS classes to be applied to the BadgeIcon component.
* These classes will be merged with the component's default classes using twMerge.
*/
className?: string;
/**
* Optional CSS styles to be applied to the component.
* Should be used sparingly and only for dynamic styles that can't be achieved with className.
*/
style?: React.CSSProperties;
};
//# sourceMappingURL=BadgeIcon.types.d.cts.map