duoyun-ui
Version:
A lightweight desktop UI component library, implemented using Gem
18 lines (17 loc) • 641 B
TypeScript
import { HTMLAttributes, RefAttributes } from 'react';
import { ForwardRefExoticComponent } from 'react';
import { DuoyunToastElement } from '../elements/toast';
export * from '../elements/toast';
export type DyToastProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunToastElement> & {
items?: DuoyunToastElement['items'];
};
export type DyToastExpose = {};
declare global {
namespace JSX {
interface IntrinsicElements {
'dy-toast': DyToastProps;
}
}
}
export declare const DyToast: ForwardRefExoticComponent<Omit<DyToastProps, "ref"> & RefAttributes<DyToastExpose>>;
export default DyToast;