@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.
36 lines (30 loc) • 872 B
TypeScript
// Type definitions for @kiwicom/orbit-components
// Project: http://github.com/kiwicom/orbit
import * as React from "react";
import * as Common from "../common/common";
type Align = "left" | "center" | "right" | "justify";
type As = "p" | "span" | "div";
type Type =
| "primary"
| "secondary"
| "attention"
| "info"
| "success"
| "warning"
| "critical"
| "white";
type Weight = "normal" | "medium" | "bold";
export interface Props extends Common.Global, Common.SpaceAfter {
readonly type?: Type;
readonly size?: Common.Size;
readonly weight?: Weight;
readonly align?: Align;
readonly italic?: boolean;
readonly uppercase?: boolean;
readonly strikeThrough?: boolean;
readonly as?: As;
readonly children: React.ReactNode;
readonly id?: string;
}
declare const Text: React.FunctionComponent<Props>;
export { Text, Text as default };