// @flow /* DOCUMENTATION: https://orbit.kiwi/components/text/ */ import * as React from "react"; import type { spaceAfter } from "../common/getSpacingToken/index.js.flow"; import type { Globals, ObjectProperty } from "../common/common.js.flow"; type Align = "start" | "end" | "left" | "center" | "right" | "justify"; type As = "p" | "span" | "div"; type Type = "primary" | "secondary" | "info" | "success" | "warning" | "critical" | "white"; type Size = "large" | "normal" | "small" | "extraLarge"; type Weight = "normal" | "medium" | "bold"; export type Props = {| +type?: Type, +size?: Size, +weight?: Weight, +margin?: string | number | ObjectProperty, +align?: Align, +strikeThrough?: boolean, +withBackground?: boolean, +italic?: boolean, +uppercase?: boolean, +as?: As, +children: React.Node, +id?: string, ...Globals, ...spaceAfter, |}; declare export default React.ComponentType;