UNPKG

@bothub-chat/ui

Version:

Bothub UI Components

43 lines (42 loc) 1.49 kB
import React from 'react'; import { ButtonComponent, ButtonCorner, ButtonSize, ButtonVariant } from './types'; export type ButtonProps = Omit<React.ComponentProps<'button'>, 'ref' | 'onAnimationStart' | 'onDrag' | 'onDragStart' | 'onDragEnd'> & { disabled?: boolean; fullWidth?: boolean; variant?: ButtonVariant; component?: ButtonComponent; size?: ButtonSize; corner?: ButtonCorner; startIcon?: React.ReactNode | null; endIcon?: React.ReactNode | null; iconSize?: number; iconFill?: string; skeleton?: boolean; htmlFor?: string; href?: string; to?: string; color?: string; disableHoverColor?: boolean; children?: React.ReactNode; }; export declare const Button: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref" | "onDrag" | "onDragEnd" | "onDragStart" | "onAnimationStart"> & { disabled?: boolean; fullWidth?: boolean; variant?: ButtonVariant; component?: ButtonComponent; size?: ButtonSize; corner?: ButtonCorner; startIcon?: React.ReactNode | null; endIcon?: React.ReactNode | null; iconSize?: number; iconFill?: string; skeleton?: boolean; htmlFor?: string; href?: string; to?: string; color?: string; disableHoverColor?: boolean; children?: React.ReactNode; } & React.RefAttributes<HTMLButtonElement | null>>; export * from './types'; export * from './styled';