svantic
Version:
A set of Fomantic-UI components for Svelte framework
26 lines (21 loc) • 511 B
TypeScript
declare type Style = {
[key in keyof CSSStyleDeclaration]?: string
}
export interface Component {
class?: string
style?: Style
dimmable?: boolean
}
export type SvanticProps = {
class?: string
style?: Style
dimmable?: boolean
}
export type SvanticEvents = {
mount: CustomEvent<HTMLDivElement>
}
export type MountEvent<T extends HTMLElement> = {
mount: CustomEvent<T>
}
export default Component
// declare type Event = HTMLElementEventMap[keyof HTMLElementEventMap]