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 1
1
import { FC } from 'react'
2
- import { Tooltip , PlacementWithLogical } from '@chakra-ui/react'
2
+ import { Tooltip , PlacementWithLogical , CSSObject } from '@chakra-ui/react'
3
3
import { vars } from '@/theme'
4
4
5
5
interface TooltipProps {
@@ -10,6 +10,7 @@ interface TooltipProps {
10
10
maxWidth ?: string
11
11
placement ?: PlacementWithLogical
12
12
isOpen ?: boolean | undefined
13
+ sx ?: CSSObject | undefined
13
14
}
14
15
15
16
export const NewTooltip : FC < TooltipProps > = ( {
@@ -21,6 +22,7 @@ export const NewTooltip: FC<TooltipProps> = ({
21
22
maxWidth = '200px' ,
22
23
placement = 'bottom' ,
23
24
isOpen,
25
+ sx,
24
26
} ) => {
25
27
return (
26
28
< Tooltip
@@ -37,6 +39,7 @@ export const NewTooltip: FC<TooltipProps> = ({
37
39
'.chakra-tooltip__arrow' : {
38
40
bg : `${ vars ( 'colors-neutral-darkCharcoal' ) } !important` ,
39
41
} ,
42
+ ...sx ,
40
43
} }
41
44
className = { className }
42
45
closeOnClick
You can’t perform that action at this time.
0 commit comments