UNPKG

pyro

Version:
40 lines (39 loc) 1.06 kB
import { DefineComponent } from 'vue'; import { HTMLAttributes } from 'svelte/elements'; export interface SelectProps { /** Current value */ value: string; /** Label when no value is selected, placeholder */ 'default-label'?: string; onInput?: (e: CustomEvent) => void; children?: any; } declare module 'vue' { interface GlobalComponents { 'pyro-select': DefineComponent<SelectProps>; } } interface PyroSelectPreact extends Omit<JSX.HTMLAttributes, keyof SelectProps>, SelectProps { } declare module 'preact/jsx-runtime' { namespace JSX { interface IntrinsicElements { 'pyro-select': PyroSelectPreact; } } } interface PyroSelectSvelte extends Omit<HTMLAttributes<any>, keyof SelectProps>, SelectProps { } declare module 'svelte/elements' { interface SvelteHTMLElements { 'pyro-select': PyroSelectSvelte; } } declare module 'solid-js' { namespace JSX { interface IntrinsicElements { 'pyro-select': PyroSelectPreact; } } } export {};