Skip to content

Commit a684598

Browse files
authored
Update TooltipTypes.d.ts
Support more place types that floating-ui supports. These actually already work but I need the type to be updated to reflect existing allowed types.
1 parent a2ba43a commit a684598

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/components/Tooltip/TooltipTypes.d.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
import type { ElementType, ReactNode, CSSProperties, RefObject } from 'react'
22

3-
export type PlacesType = 'top' | 'right' | 'bottom' | 'left'
3+
export type PlacesType =
4+
| "top"
5+
| "right"
6+
| "bottom"
7+
| "left"
8+
| "top-start"
9+
| "top-end"
10+
| "right-start"
11+
| "right-end"
12+
| "bottom-start"
13+
| "bottom-end"
14+
| "left-start"
15+
| "left-end";
416

517
export type VariantType = 'dark' | 'light' | 'success' | 'warning' | 'error' | 'info'
618

0 commit comments

Comments
 (0)