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.

27 lines (20 loc) 675 B
// @flow import type { Globals } from "../common/common.js.flow"; import defaultTheme from "../defaultTheme"; export type Size = "small" | "medium" | "large"; type Color = "primary" | "secondary" | "tertiary" | "info" | "success" | "warning" | "critical"; export type Props = {| ...Globals, +size?: Size, +color?: Color, +className?: string, +customColor?: string, +children: React$Node, +viewBox: string, +ariaHidden?: boolean, +reverseOnRtl?: boolean, +ariaLabel?: string, |}; declare export default React$ComponentType<Props>; export type GetSize = (size: Size) => ({ theme: typeof defaultTheme }) => string; declare export var getSize: GetSize;