UNPKG

@brizy/ui

Version:
16 lines (15 loc) 733 B
import { ComponentProps, PropsWithChildren, ReactElement } from "react"; import AntTooltip from "antd/lib/tooltip"; import { Color } from "../types"; export type Placement = "top" | "left" | "right" | "bottom" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom"; export interface Props { title: ComponentProps<typeof AntTooltip>["title"]; color?: Color; placement?: Placement; rounded?: boolean; border?: boolean; shadow?: boolean; capitalized?: boolean; hideArrow?: boolean; } export declare const Tooltip: ({ title, color, placement, children, rounded, hideArrow, border, shadow, capitalized, }: PropsWithChildren<Props>) => ReactElement;