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.

36 lines (28 loc) 874 B
// Type definitions for @kiwicom/orbit-components // Project: http://github.com/kiwicom/orbit import type * as React from "react"; import type defaultTheme from "../defaultTheme"; import type * as Common from "../common/types"; export type Size = "small" | "medium" | "large"; export type Color = | "primary" | "secondary" | "tertiary" | "info" | "success" | "warning" | "critical"; export interface Props extends Common.Globals { readonly size?: Size; readonly color?: Color; readonly className?: string; readonly customColor?: string; readonly reverseOnRtl?: boolean; readonly ariaLabel?: string; readonly ariaHidden?: boolean; } export interface FactoryProps extends Props { readonly children: React.ReactNode; readonly viewBox: string; } export type GetSize = (size: Size) => ({ theme }: { theme: typeof defaultTheme }) => string;