UNPKG

duoyun-ui

Version:

A lightweight desktop UI component library, implemented using Gem

21 lines (20 loc) 825 B
import { HTMLAttributes, RefAttributes } from 'react'; import { ForwardRefExoticComponent } from 'react'; import { DuoyunRadioElement } from '../elements/radio'; export * from '../elements/radio'; export type DyRadioProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunRadioElement> & { checked?: DuoyunRadioElement['checked']; disabled?: DuoyunRadioElement['disabled']; 'onchange'?: (event: CustomEvent<Parameters<DuoyunRadioElement['change']>[0]>) => void; value?: DuoyunRadioElement['value']; }; export type DyRadioExpose = {}; declare global { namespace JSX { interface IntrinsicElements { 'dy-radio': DyRadioProps; } } } export declare const DyRadio: ForwardRefExoticComponent<Omit<DyRadioProps, "ref"> & RefAttributes<DyRadioExpose>>; export default DyRadio;