diff --git a/src/components/InfoBar/InfoBar.tsx b/src/components/InfoBar/InfoBar.tsx index 7b8584e3e..927bfc8a3 100644 --- a/src/components/InfoBar/InfoBar.tsx +++ b/src/components/InfoBar/InfoBar.tsx @@ -39,6 +39,7 @@ export const InfoBar: FC = React.forwardRef( gradient = false, icon, iconClassNames, + iconProps = {}, locale = enUS, onClose, role = 'alert', @@ -145,6 +146,7 @@ export const InfoBar: FC = React.forwardRef(
; @@ -92,6 +93,11 @@ export interface InfoBarsProps * Custom classes of the icon. */ iconClassNames?: string; + /** + * Additional props to be passed to the Icon component. + * These props will be merged with the default icon props. + */ + iconProps?: IconProps; /** * The InfoBar locale. * @default 'enUS' diff --git a/src/components/Pills/Pills.types.ts b/src/components/Pills/Pills.types.ts index 5e53056e5..c8d61c0de 100644 --- a/src/components/Pills/Pills.types.ts +++ b/src/components/Pills/Pills.types.ts @@ -31,7 +31,6 @@ export type closeButtonProps = Omit< 'icon' | 'onClick' | 'size' | 'classNames' >; - /** * Props for the pill button shown on right of the label */