UNPKG

@chief-editor/ui

Version:

UI Component for chief editor

14 lines (13 loc) 546 B
import { ButtonHTMLAttributes } from 'react'; import { UnionOmit } from '@co-hooks/util'; export declare type ButtonType = 'default' | 'primary' | 'text' | 'default-plain' | 'primary-plain'; export interface IButton { type?: ButtonType; disabled?: boolean; block?: boolean; needGrouped?: boolean; checked?: boolean; htmlType?: 'submit' | 'reset' | 'button'; } export declare type IButtonProps = UnionOmit<IButton, ButtonHTMLAttributes<HTMLButtonElement>>; export declare function Button(props: IButtonProps): JSX.Element;