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.

39 lines (32 loc) 916 B
// Type definitions for @kiwicom/orbit-components // Project: http://github.com/kiwicom/orbit import type * as React from "react"; import type * as Common from "../common/types"; export type SpacingToken = | "none" | "XXXSmall" | "XXSmall" | "XSmall" | "small" | "medium" | "large" | "XLarge" | "XXLarge" | "XXXLarge"; export type Align = "start" | "end" | "center"; export type Justify = "start" | "end" | "center" | "between" | "around"; interface MediaQuery { readonly spacing?: SpacingToken; readonly align?: Align; readonly justify?: Justify; } export interface Props extends Common.Globals, MediaQuery { readonly as?: string; readonly className?: string; readonly mediumMobile?: MediaQuery; readonly largeMobile?: MediaQuery; readonly tablet?: MediaQuery; readonly desktop?: MediaQuery; readonly largeDesktop?: MediaQuery; readonly children?: React.ReactNode; }