duoyun-ui
Version:
A lightweight desktop UI component library, implemented using Gem
21 lines (20 loc) • 839 B
TypeScript
import { HTMLAttributes, RefAttributes } from 'react';
import { ForwardRefExoticComponent } from 'react';
import { DuoyunBannerElement } from '../elements/banner';
export * from '../elements/banner';
export type DyBannerProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunBannerElement> & {
closable?: DuoyunBannerElement['closable'];
status?: DuoyunBannerElement['status'];
action?: DuoyunBannerElement['action'];
'onclose'?: (event: CustomEvent<Parameters<DuoyunBannerElement['close']>[0]>) => void;
};
export type DyBannerExpose = {};
declare global {
namespace JSX {
interface IntrinsicElements {
'dy-banner': DyBannerProps;
}
}
}
export declare const DyBanner: ForwardRefExoticComponent<Omit<DyBannerProps, "ref"> & RefAttributes<DyBannerExpose>>;
export default DyBanner;