UNPKG

duoyun-ui

Version:

A lightweight desktop UI component library, implemented using Gem

16 lines (15 loc) 603 B
import type { HTMLAttributes } from "svelte/elements"; import { DuoyunSwitchElement } from '../elements/switch'; export * from '../elements/switch'; interface DySwitchProps extends HTMLAttributes<HTMLElement> { disabled?: DuoyunSwitchElement['disabled']; checked?: DuoyunSwitchElement['checked']; value?: DuoyunSwitchElement['value']; neutral?: DuoyunSwitchElement['neutral']; 'on:change'?: (event: CustomEvent<Parameters<DuoyunSwitchElement['change']>[0]>) => void; } declare module "svelte/elements" { interface SvelteHTMLElements { 'dy-switch': DySwitchProps; } }