UNPKG

722 BTypeScriptView Raw
1import React from 'react';
2import { BsPrefixPropsWithChildren, BsPrefixRefForwardingComponent } from './helpers';
3import { ButtonVariant } from './types';
4export declare type ButtonType = 'button' | 'reset' | 'submit' | string;
5export interface ButtonProps extends React.HTMLAttributes<HTMLElement>, BsPrefixPropsWithChildren {
6 active?: boolean;
7 block?: boolean;
8 variant?: ButtonVariant;
9 size?: 'sm' | 'lg';
10 type?: ButtonType;
11 href?: string;
12 disabled?: boolean;
13 target?: any;
14}
15declare type Button = BsPrefixRefForwardingComponent<'button', ButtonProps>;
16export declare type CommonButtonProps = 'href' | 'size' | 'variant' | 'disabled';
17declare const Button: Button;
18export default Button;