UNPKG

@sjsf/shadcn4-theme

Version:

The shadcn-svelte based theme for svelte-jsonschema-form

18 lines (17 loc) 558 B
import type { WithElementRef } from 'bits-ui'; import type { Component } from 'svelte'; import type { HTMLInputAttributes, HTMLInputTypeAttribute } from 'svelte/elements'; type InputType = Exclude<HTMLInputTypeAttribute, 'file'>; export type InputProps = WithElementRef<Omit<HTMLInputAttributes, 'type'> & ({ type: 'file'; files?: FileList; } | { type?: InputType; files?: undefined; })>; declare module '../context.js' { interface ThemeComponents { Input: Component<InputProps, {}, 'ref' | 'value' | 'files'>; } } export {};