feat(button): set default values for tooltip alignment, position

This commit is contained in:
Eric Liu 2021-01-22 16:25:08 -08:00
commit 2e899232c5
5 changed files with 23 additions and 12 deletions

View file

@ -37,11 +37,13 @@ export interface ButtonProps
/**
* Set the alignment of the tooltip relative to the icon
* `hasIconOnly` must be set to `true`
* @default "center"
*/
tooltipAlignment?: "start" | "center" | "end";
/**
* Set the position of the tooltip relative to the icon
* @default "bottom"
*/
tooltipPosition?: "top" | "right" | "bottom" | "left";