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 (25 loc) 633 B
// @flow import type { Globals } from "../common/common.js.flow"; import defaultTokens from "../defaultTokens"; export type Size = "small" | "medium" | "large"; type Color = | "attention" | "primary" | "secondary" | "tertiary" | "info" | "success" | "warning" | "critical"; export type Props = {| +size: Size, +color?: Color, +className: string, +customColor: string, +children: React$Node, +viewBox: string, ...Globals, |}; declare export default React$ComponentType<Props>; export type GetSize = (size: Size) => ({ theme: typeof defaultTokens }) => string; declare export var getSize: GetSize;