mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 02:41:05 +00:00
feat(tooltip): support align prop from carbon-components v10.25 (#446)
This commit is contained in:
parent
1559d0f9d6
commit
222c7f2899
11 changed files with 71 additions and 27 deletions
6
types/Tooltip/Tooltip.d.ts
vendored
6
types/Tooltip/Tooltip.d.ts
vendored
|
@ -1,6 +1,12 @@
|
|||
/// <reference types="svelte" />
|
||||
|
||||
export interface TooltipProps extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["div"]> {
|
||||
/**
|
||||
* Set the alignment of the tooltip relative to the icon
|
||||
* @default "center"
|
||||
*/
|
||||
align?: "start" | "center" | "end";
|
||||
|
||||
/**
|
||||
* Set the direction of the tooltip relative to the button
|
||||
* @default "bottom"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue