Skip to content

Commit 0cafb82

Browse files
committed
chore: add jsdoc for tooltip props type
1 parent 7fdab84 commit 0cafb82

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/Common/Tooltip/types.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,21 @@ import { TippyProps } from '@tippyjs/react'
22

33
type BaseTooltipProps =
44
| {
5+
/**
6+
* If true, show tippy on truncate
7+
* @default true
8+
*/
59
showOnTruncate?: boolean
10+
/**
11+
* If showOnTruncate is defined this prop doesn't work
12+
* @default false
13+
*/
614
alwaysShowTippyOnHover?: never
715
}
816
| {
917
/**
10-
* If true, show tippy on truncate
11-
* @default true
18+
* If alwaysShowTippyOnHover is defined this prop doesn't work
19+
* @default false
1220
*/
1321
showOnTruncate?: never
1422
/**

0 commit comments

Comments
 (0)