@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.
23 lines • 951 B
TypeScript
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;
}
export {};
//# sourceMappingURL=types.d.ts.map