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) 1.07 kB
// 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"; import type { DownloadWithHrefConditionalProps } from "../primitives/ButtonPrimitive/types"; export type Type = "primary" | "secondary" | "info" | "success" | "warning" | "critical" | "white"; interface BaseProps extends Common.Globals { readonly ariaCurrent?: string; readonly asComponent?: Common.Component; readonly children: React.ReactNode; readonly external?: boolean; readonly href?: string; readonly iconLeft?: React.ReactNode; readonly iconRight?: React.ReactNode; readonly noUnderline?: boolean; readonly onClick?: Common.Event<React.SyntheticEvent<HTMLAnchorElement>>; readonly rel?: string; readonly size?: Common.Size; readonly standAlone?: boolean; readonly stopPropagation?: boolean; readonly tabIndex?: string | number; readonly title?: string; readonly type?: Type; } export type Props = BaseProps & DownloadWithHrefConditionalProps;