UNPKG

duoyun-ui

Version:

A lightweight desktop UI component library, implemented using Gem

20 lines (19 loc) 844 B
import { HTMLAttributes, RefAttributes } from 'react'; import { ForwardRefExoticComponent } from 'react'; import { DuoyunCountdownElement } from '../elements/countdown'; export * from '../elements/countdown'; export type DyCountdownProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunCountdownElement> & { value?: DuoyunCountdownElement['value']; renderChar?: DuoyunCountdownElement['renderChar']; 'onfinish'?: (event: CustomEvent<Parameters<DuoyunCountdownElement['finish']>[0]>) => void; }; export type DyCountdownExpose = {}; declare global { namespace JSX { interface IntrinsicElements { 'dy-countdown': DyCountdownProps; } } } export declare const DyCountdown: ForwardRefExoticComponent<Omit<DyCountdownProps, "ref"> & RefAttributes<DyCountdownExpose>>; export default DyCountdown;