UNPKG

@duffel/components

Version:

Component library to build your travel product with Duffel.

24 lines (23 loc) 787 B
import { IconName } from "@components/shared/Icon"; import * as React from "react"; declare const BUTTON_VARIANTS: { primary: string; outlined: string; destructive: string; }; type ButtonVariants = keyof typeof BUTTON_VARIANTS; declare const BUTTON_SIZES: { 32: string; 40: string; 48: string; }; type ButtonSizes = keyof typeof BUTTON_SIZES; type NativeButtonProps = React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>; export interface ButtonProps extends Pick<NativeButtonProps, "id" | "onClick" | "disabled" | "children" | "className" | "type"> { "data-testid"?: string; iconBefore?: IconName; variant?: ButtonVariants; size?: ButtonSizes; } export declare const Button: React.FC<ButtonProps>; export {};