UNPKG

pyro

Version:
45 lines (44 loc) 1.19 kB
import { TargetValueEvent } from '../types'; import { DefineComponent } from 'vue'; import { HTMLAttributes } from 'svelte/elements'; export interface RadioProps { /** Initial checked value */ checked?: boolean; /** Boolean value of radio */ value: string; /** Makes rectangular, button-like radio */ square?: boolean; /** Aria label */ 'aria-label'?: string; onInput?: (e: TargetValueEvent) => void; children?: any; } declare module 'vue' { interface GlobalComponents { 'pyro-radio': DefineComponent<RadioProps>; } } interface PyroRadioPreact extends Omit<JSX.HTMLAttributes, keyof RadioProps>, RadioProps { } declare module 'preact/jsx-runtime' { namespace JSX { interface IntrinsicElements { 'pyro-radio': PyroRadioPreact; } } } interface PyroRadioSvelte extends Omit<HTMLAttributes<any>, keyof RadioProps>, RadioProps { } declare module 'svelte/elements' { interface SvelteHTMLElements { 'pyro-radio': PyroRadioSvelte; } } declare module 'solid-js' { namespace JSX { interface IntrinsicElements { 'pyro-radio': PyroRadioPreact; } } } export {};