UNPKG

@kiwicom/orbit-components

Version:

Orbit-components is a React component library which provides developers with the easiest possible way of building Kiwi.com’s products.

43 lines (35 loc) 980 B
// @flow /* DOCUMENTATION: https://orbit.kiwi/components/primitives/tooltipPrimitive/ */ import type { StyledComponent } from "styled-components"; import * as React from "react"; import type { Placement } from "@popperjs/core/lib/enums"; import type { Globals } from "../../common/common.js.flow"; export type Sizes = "small" | "medium"; export type Size = {| size: Sizes, |}; export type Popper = {| +offset?: [number, number], +placement?: Placement, +noFlip?: boolean, |}; export type Props = {| ...Globals, +children?: React.Node, +content: React.Node, +size?: Sizes, +error?: boolean, +help?: boolean, +stopPropagation?: boolean, +renderInPortal?: boolean, +tooltipShown?: boolean, +enabled?: boolean, +tabIndex?: string | number, +removeUnderlinedText?: boolean, +block?: boolean, ...Popper, |}; declare export var StyledTooltipChildren: StyledComponent<any, any, HTMLElement>; declare export default React.ComponentType<Props>;