File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 11import { FC } from 'react'
2- import { Tooltip , PlacementWithLogical } from '@chakra-ui/react'
2+ import { Tooltip , PlacementWithLogical , CSSObject } from '@chakra-ui/react'
33import { vars } from '@/theme'
44
55interface TooltipProps {
@@ -10,6 +10,7 @@ interface TooltipProps {
1010 maxWidth ?: string
1111 placement ?: PlacementWithLogical
1212 isOpen ?: boolean | undefined
13+ sx ?: CSSObject | undefined
1314}
1415
1516export const NewTooltip : FC < TooltipProps > = ( {
@@ -21,6 +22,7 @@ export const NewTooltip: FC<TooltipProps> = ({
2122 maxWidth = '200px' ,
2223 placement = 'bottom' ,
2324 isOpen,
25+ sx,
2426} ) => {
2527 return (
2628 < Tooltip
@@ -37,6 +39,7 @@ export const NewTooltip: FC<TooltipProps> = ({
3739 '.chakra-tooltip__arrow' : {
3840 bg : `${ vars ( 'colors-neutral-darkCharcoal' ) } !important` ,
3941 } ,
42+ ...sx ,
4043 } }
4144 className = { className }
4245 closeOnClick
You can’t perform that action at this time.
0 commit comments