UNPKG

@makigas/genshi-svelte

Version:

The Svelte Components required to integrate Genshi into a Svelte application

16 lines (15 loc) 636 B
import type { HTMLInputAttributes } from 'svelte/elements'; import { type FormControlProps } from '../common.js'; import type { Icon } from '@lucide/svelte'; interface Props extends FormControlProps<HTMLInputAttributes> { value?: string; placeholder?: string; type?: 'text' | 'password' | 'number' | 'tel' | 'url' | 'search' | 'datetime-local' | 'date' | 'time' | 'color'; mono?: boolean; readonly?: boolean; iconBefore?: typeof Icon; iconAfter?: typeof Icon; } declare const TextField: import("svelte").Component<Props, {}, "value">; type TextField = ReturnType<typeof TextField>; export default TextField;