feat(tooltip): support align prop from carbon-components v10.25 (#446)

This commit is contained in:
Eric Liu 2020-12-05 09:04:53 -08:00 committed by GitHub
commit 222c7f2899
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 71 additions and 27 deletions

View file

@ -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"