UNPKG

duoyun-ui

Version:

A lightweight desktop UI component library, implemented using Gem

30 lines (29 loc) 1.18 kB
import { HTMLAttributes, RefAttributes } from 'react'; import { ForwardRefExoticComponent } from 'react'; import { DuoyunButtonElement } from '../elements/button'; export * from '../elements/button'; export type DyButtonProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunButtonElement> & { type?: DuoyunButtonElement['type']; color?: DuoyunButtonElement['color']; small?: DuoyunButtonElement['small']; round?: DuoyunButtonElement['round']; square?: DuoyunButtonElement['square']; disabled?: DuoyunButtonElement['disabled']; borderless?: DuoyunButtonElement['borderless']; dropdown?: DuoyunButtonElement['dropdown']; route?: DuoyunButtonElement['route']; params?: DuoyunButtonElement['params']; query?: DuoyunButtonElement['query']; icon?: DuoyunButtonElement['icon']; active?: DuoyunButtonElement['active']; }; export type DyButtonExpose = {}; declare global { namespace JSX { interface IntrinsicElements { 'dy-button': DyButtonProps; } } } export declare const DyButton: ForwardRefExoticComponent<Omit<DyButtonProps, "ref"> & RefAttributes<DyButtonExpose>>; export default DyButton;