feat(tooltip): add component

This commit is contained in:
unix
2020-04-07 11:04:58 +08:00
parent b3e9720768
commit 183e40ff5d
9 changed files with 559 additions and 1 deletions

View File

@@ -46,6 +46,26 @@ const copyTypes = tuple(
'prevent',
)
const triggerTypes = tuple(
'hover',
'click',
)
const placement = tuple(
'top',
'topStart',
'topEnd',
'left',
'leftStart',
'leftEnd',
'bottom',
'bottomStart',
'bottomEnd',
'right',
'rightStart',
'rightEnd',
)
export type ButtonTypes = typeof buttonTypes[number]
export type NormalSizes = typeof normalSizes[number]
@@ -57,3 +77,7 @@ export type ThemeTypes = typeof themeTypes[number]
export type SnippetTypes = typeof snippetTypes[number]
export type CopyTypes = typeof copyTypes[number]
export type TriggerTypes = typeof triggerTypes[number]
export type Placement = typeof placement[number]