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.

33 lines (27 loc) 852 B
// @flow /* DOCUMENTATION: https://orbit.kiwi/components/text/ */ import type { ReactComponentStyled } from "styled-components"; import type { spaceAfter } from "../common/getSpacingToken/index"; import type { Globals } from "../common/common.js.flow"; type Align = "left" | "center" | "right"; type Element = "p" | "span" | "div"; type Type = "primary" | "secondary" | "info" | "success" | "warning" | "critical" | "white"; type Size = "large" | "normal" | "small"; type Weight = "normal" | "bold"; export type Props = {| +type?: Type, +size?: Size, +weight?: Weight, +align?: Align, +italic?: boolean, +uppercase?: boolean, +element?: Element, +children: React$Node, +id?: string, ...Globals, ...spaceAfter, |}; declare export default React$ComponentType<Props>; declare export var StyledText: ReactComponentStyled<any>;