diff --git a/src/components/Tooltip/Tooltip.tsx b/src/components/Tooltip/Tooltip.tsx index 060a8a285..c939b9bb0 100644 --- a/src/components/Tooltip/Tooltip.tsx +++ b/src/components/Tooltip/Tooltip.tsx @@ -33,6 +33,8 @@ export const Tooltip: FC = ({ hideAfter = 0, tabIndex = 0, positionStrategy = 'absolute', + wrapperClassNames, + wrapperStyle, ...rest }) => { const tooltipSide: string = placement.split('-')?.[0]; @@ -101,6 +103,7 @@ export const Tooltip: FC = ({ const referenceWrapperClasses: string = mergeClasses([ styles.referenceWrapper, + wrapperClassNames, { [styles.disabled]: disabled }, ]); @@ -128,6 +131,7 @@ export const Tooltip: FC = ({ <>
{ * @default 0 */ tabIndex?: number; + /** + * Wrapper class name + */ + wrapperClassNames?: string; + /** + * Wrapper style + */ + wrapperStyle?: React.CSSProperties; }