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