mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 19:46:36 +00:00
feat(button): set default values for tooltip alignment, position
This commit is contained in:
parent
246b217e75
commit
2e899232c5
5 changed files with 23 additions and 12 deletions
2
types/Button/Button.d.ts
vendored
2
types/Button/Button.d.ts
vendored
|
@ -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";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue