UNPKG

pyro

Version:
41 lines (40 loc) 1.15 kB
import { TargetValueEvent } from '../types'; import { DefineComponent } from 'vue'; import { HTMLAttributes } from 'svelte/elements'; export interface TabGroupProps { /** The tabs fill all available space */ fill?: boolean; /** Contains value of clicked tab */ onClick?: (e: TargetValueEvent) => void; /** Slot for tabs */ children?: any; } declare module 'vue' { interface GlobalComponents { 'pyro-tab-group': DefineComponent<TabGroupProps>; } } interface PyroTabGroupPreact extends Omit<JSX.HTMLAttributes, keyof TabGroupProps>, TabGroupProps { } declare module 'preact/jsx-runtime' { namespace JSX { interface IntrinsicElements { 'pyro-tab-group': PyroTabGroupPreact; } } } interface PyroTabGroupSvelte extends Omit<HTMLAttributes<any>, keyof TabGroupProps>, TabGroupProps { } declare module 'svelte/elements' { interface SvelteHTMLElements { 'pyro-tab-group': PyroTabGroupSvelte; } } declare module 'solid-js' { namespace JSX { interface IntrinsicElements { 'pyro-tab-group': PyroTabGroupPreact; } } } export {};