@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.
25 lines • 1.14 kB
TypeScript
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<HTMLAnchorElement | HTMLButtonElement> {
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>> | Common.Event<React.SyntheticEvent<HTMLElement>>;
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;
export {};
//# sourceMappingURL=types.d.ts.map