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

This commit is contained in:
Eric Liu 2020-12-05 06:23:05 -08:00
commit 5719eba723
11 changed files with 71 additions and 27 deletions

View file

@ -3,7 +3,7 @@ import { DataTableHeader } from "../DataTable/DataTable";
export interface DataTableSkeletonProps
extends DataTableHeader,
svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["table"]> {
svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["div"]> {
/**
* Specify the number of columns
* Superseded by `headers` if `headers` is a non-empty array

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"