@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.
13 lines (12 loc) • 688 B
TypeScript
import type { Size, HeightProps, ButtonCommonProps } from "../types";
import type { Theme } from "../../../defaultTheme";
export interface Params extends Pick<ButtonCommonProps, "iconRight" | "contentAlign" | "contentWidth" | "iconLeft" | "width" | "iconRight" | "children" | "fullWidth" | "centered"> {
size?: Size;
theme: Theme;
}
export interface Output extends HeightProps, Pick<ButtonCommonProps, "contentAlign" | "contentWidth" | "width"> {
fontWeight: string;
padding: string;
}
declare const getCommonProps: ({ width, size, theme, iconRight, contentAlign, contentWidth, fullWidth, centered, iconLeft, children, }: Params) => Output;
export default getCommonProps;