UNPKG

@nlabs/gothamjs

Version:
23 lines (22 loc) 937 B
import type { ReactNode } from 'react'; import type { GothamColor } from '../../utils/colorUtils.js'; import type { GothamSize } from '../../utils/sizeUtils.js'; export type ButtonType = 'button' | 'reset' | 'submit'; export type ButtonVariant = 'text' | 'contained' | 'outlined'; export interface ButtonProps { readonly children?: ReactNode; readonly className?: string; readonly color?: GothamColor; readonly disabled?: boolean; readonly hasNotification?: boolean; readonly hasShadow?: boolean; readonly icon?: ReactNode; readonly isLoading?: boolean; readonly label?: string; readonly onClick?: (event?: unknown) => void; readonly size?: GothamSize; readonly tabIndex?: number; readonly type?: ButtonType; readonly variant?: ButtonVariant; } export declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;