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.

32 lines (24 loc) 923 B
// @flow /* DOCUMENTATION: https://orbit.kiwi/components/heading/ */ import type { ReactComponentStyled } from "styled-components"; import type { Globals } from "../common/common.js.flow"; import type { spaceAfter } from "../common/getSpacingToken/index"; import type { ThemeProps } from "../defaultTheme"; type Element = "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "div"; type Type = "display" | "displaySubtitle" | "title1" | "title2" | "title3" | "title4" | "title5"; export type Props = {| ...Globals, ...spaceAfter, +element?: Element, +type?: Type, +children: React$Node, +inverted?: boolean, +dataA11ySection?: string, +id?: string, |}; export type GetHeadingToken = (name: string) => ({ ...ThemeProps, type: Type }) => string; declare export default React$ComponentType<Props>; declare export var StyledHeading: ReactComponentStyled<any>; declare export var getHeadingToken: GetHeadingToken;