UNPKG

@kiwicom/orbit-components

Version:

<div align="center"> <a href="https://orbit.kiwi" target="_blank"> <img alt="orbit-components" src="https://orbit.kiwi/wp-content/uploads/2018/08/orbit-components.png" srcset="https://orbit.kiwi/wp-content/uploads/2018/08/orbit-components@2x.png 2x"

33 lines (25 loc) 643 B
// @flow import type { Globals } from "../common/common.js.flow"; import defaultTokens from "../defaultTokens"; 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 = { theme: typeof defaultTokens, size: Size, sizeIcon?: Size }; declare export var getSize: () => GetSize => string;