Skip to content

Commit 4bbf263

Browse files
feat(molecules): props sx a newtooltip (#631)
1 parent fc20913 commit 4bbf263

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/molecules/Tooltip/NewTooltip.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { FC } from 'react'
2-
import { Tooltip, PlacementWithLogical } from '@chakra-ui/react'
2+
import { Tooltip, PlacementWithLogical, CSSObject } from '@chakra-ui/react'
33
import { vars } from '@/theme'
44

55
interface TooltipProps {
@@ -10,6 +10,7 @@ interface TooltipProps {
1010
maxWidth?: string
1111
placement?: PlacementWithLogical
1212
isOpen?: boolean | undefined
13+
sx?: CSSObject | undefined
1314
}
1415

1516
export 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

0 commit comments

Comments
 (0)