pyro
Version:
Pyro custom elements
41 lines (40 loc) • 1.1 kB
TypeScript
import { TargetValueEvent } from '../types';
import { DefineComponent } from 'vue';
import { HTMLAttributes } from 'svelte/elements';
export interface CheckboxProps {
/** Checked */
checked?: boolean;
/** Disabled */
disabled?: boolean;
onInput?: (e: TargetValueEvent) => void;
children?: any;
}
declare module 'vue' {
interface GlobalComponents {
'pyro-checkbox': DefineComponent<CheckboxProps>;
}
}
interface PyroCheckboxPreact extends Omit<JSX.HTMLAttributes, keyof CheckboxProps>, CheckboxProps {
}
declare module 'preact/jsx-runtime' {
namespace JSX {
interface IntrinsicElements {
'pyro-checkbox': PyroCheckboxPreact;
}
}
}
interface PyroCheckboxSvelte extends Omit<HTMLAttributes<any>, keyof CheckboxProps>, CheckboxProps {
}
declare module 'svelte/elements' {
interface SvelteHTMLElements {
'pyro-checkbox': PyroCheckboxSvelte;
}
}
declare module 'solid-js' {
namespace JSX {
interface IntrinsicElements {
'pyro-checkbox': PyroCheckboxPreact;
}
}
}
export {};