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.

31 lines (25 loc) 766 B
// Type definitions for @kiwicom/orbit-components // Project: http://github.com/kiwicom/orbit import type { ButtonCommonProps, DownloadWithHrefConditionalProps, FullWidthConditionalProps, Size, } from "../primitives/ButtonPrimitive/types"; export type Type = | "primary" | "secondary" | "critical" | "primarySubtle" | "criticalSubtle" | "white" | "bundleBasic" | "bundleMedium" | "bundleTop"; export type ButtonStates = "default" | "hover" | "active" | "focus"; type OmittedButtonCommonProps = Omit<ButtonCommonProps, "className">; interface ButtonProps extends OmittedButtonCommonProps { readonly type?: Type; readonly size?: Size; } export type Props = ButtonProps & FullWidthConditionalProps & DownloadWithHrefConditionalProps;