mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-28 03:15:16 +00:00
19 lines
722 B
TypeScript
19 lines
722 B
TypeScript
|
import React from 'react';
|
||
|
import { BsPrefixPropsWithChildren, BsPrefixRefForwardingComponent } from './helpers';
|
||
|
import { ButtonVariant } from './types';
|
||
|
export declare type ButtonType = 'button' | 'reset' | 'submit' | string;
|
||
|
export interface ButtonProps extends React.HTMLAttributes<HTMLElement>, BsPrefixPropsWithChildren {
|
||
|
active?: boolean;
|
||
|
block?: boolean;
|
||
|
variant?: ButtonVariant;
|
||
|
size?: 'sm' | 'lg';
|
||
|
type?: ButtonType;
|
||
|
href?: string;
|
||
|
disabled?: boolean;
|
||
|
target?: any;
|
||
|
}
|
||
|
declare type Button = BsPrefixRefForwardingComponent<'button', ButtonProps>;
|
||
|
export declare type CommonButtonProps = 'href' | 'size' | 'variant' | 'disabled';
|
||
|
declare const Button: Button;
|
||
|
export default Button;
|