diff --git a/src/components/InfoBar/InfoBar.types.ts b/src/components/InfoBar/InfoBar.types.ts index 9583858c1..1b9994037 100644 --- a/src/components/InfoBar/InfoBar.types.ts +++ b/src/components/InfoBar/InfoBar.types.ts @@ -1,6 +1,7 @@ import { IconName } from '../Icon'; import { ButtonProps } from '../Button'; import { OcBaseProps } from '../OcBase'; +import React from 'react'; export type CloseButtonProps = Omit; @@ -52,7 +53,7 @@ export interface InfoBarsProps extends OcBaseProps { /** * Content of the InfoBar */ - content: string; + content: React.ReactNode; /** * Custom icon for the InfoBar * @default IconName.mdiInformation | IconName.mdiCheckCircle | IconName.mdiAlert diff --git a/src/components/Snackbar/Snackbar.types.ts b/src/components/Snackbar/Snackbar.types.ts index 6e0cd7359..76223cb59 100644 --- a/src/components/Snackbar/Snackbar.types.ts +++ b/src/components/Snackbar/Snackbar.types.ts @@ -1,3 +1,4 @@ +import React from 'react'; import { InfoBarsProps, InfoBarType } from '../InfoBar'; export type SnackbarPosition = @@ -14,7 +15,7 @@ export interface SnackbarProps extends Omit { /** * Content of the snackbar */ - content: string; + content: React.ReactNode; /** * Duration for which the snackbar is shown * @default 3000