duoyun-ui
Version:
A lightweight desktop UI component library, implemented using Gem
18 lines (17 loc) • 617 B
TypeScript
import type { HTMLAttributes } from "svelte/elements";
import { DuoyunTagElement } from '../elements/tag';
export * from '../elements/tag';
interface DyTagProps extends HTMLAttributes<HTMLElement> {
closable?: DuoyunTagElement['closable'];
color?: DuoyunTagElement['color'];
/**@deprecated */
mode?: DuoyunTagElement['mode'];
type?: DuoyunTagElement['type'];
small?: DuoyunTagElement['small'];
'on:close'?: (event: CustomEvent<Parameters<DuoyunTagElement['close']>[0]>) => void;
}
declare module "svelte/elements" {
interface SvelteHTMLElements {
'dy-tag': DyTagProps;
}
}