UNPKG

duoyun-ui

Version:

A lightweight desktop UI component library, implemented using Gem

22 lines (21 loc) 933 B
import { HTMLAttributes, RefAttributes } from 'react'; import { ForwardRefExoticComponent } from 'react'; import { DuoyunCheckboxElement } from '../elements/checkbox'; export * from '../elements/checkbox'; export type DyCheckboxProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunCheckboxElement> & { checked?: DuoyunCheckboxElement['checked']; indeterminate?: DuoyunCheckboxElement['indeterminate']; disabled?: DuoyunCheckboxElement['disabled']; 'onchange'?: (event: CustomEvent<Parameters<DuoyunCheckboxElement['change']>[0]>) => void; value?: DuoyunCheckboxElement['value']; }; export type DyCheckboxExpose = {}; declare global { namespace JSX { interface IntrinsicElements { 'dy-checkbox': DyCheckboxProps; } } } export declare const DyCheckbox: ForwardRefExoticComponent<Omit<DyCheckboxProps, "ref"> & RefAttributes<DyCheckboxExpose>>; export default DyCheckbox;