UNPKG

duoyun-ui

Version:

A lightweight desktop UI component library, implemented using Gem

22 lines (21 loc) 851 B
import { HTMLAttributes, RefAttributes } from 'react'; import { ForwardRefExoticComponent } from 'react'; import { DuoyunRateElement } from '../elements/rate'; export * from '../elements/rate'; export type DyRateProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunRateElement> & { value?: DuoyunRateElement['value']; total?: DuoyunRateElement['total']; disabled?: DuoyunRateElement['disabled']; readonly?: DuoyunRateElement['readonly']; 'onchange'?: (event: CustomEvent<Parameters<DuoyunRateElement['change']>[0]>) => void; }; export type DyRateExpose = {}; declare global { namespace JSX { interface IntrinsicElements { 'dy-rate': DyRateProps; } } } export declare const DyRate: ForwardRefExoticComponent<Omit<DyRateProps, "ref"> & RefAttributes<DyRateExpose>>; export default DyRate;