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.

39 lines (31 loc) 1 kB
// Type definitions for @kiwicom/orbit-components // Project: http://github.com/kiwicom/orbit import type * as React from "react"; import type * as Common from "../common/types"; type Align = "start" | "end" | "left" | "center" | "right" | "justify"; type As = "p" | "span" | "div"; export type Type = | "primary" | "secondary" | "attention" | "info" | "success" | "warning" | "critical" | "white"; export type Weight = "normal" | "medium" | "bold"; /** spaceAfter prop is deprecated, use margin instead */ export interface Props extends Common.Globals, Common.SpaceAfter { readonly type?: Type; readonly size?: Common.Size; readonly margin?: React.CSSProperties["margin"] | Common.ObjectProperty; readonly weight?: Weight; readonly align?: Align; readonly italic?: boolean; readonly uppercase?: boolean; readonly strikeThrough?: boolean; readonly withBackground?: boolean; readonly as?: As; readonly children: React.ReactNode; readonly id?: string; }