UNPKG

@tuentyfaiv/svelte-form

Version:

A form library for Svelte. It is built on top of Svelte and Typescript. Inspired by Formik and React Hook Form.

15 lines (14 loc) 502 B
import type { GeneralFieldProps } from "../../logic/typing/globals/proptypes.js"; import type { FileStyles } from "../../logic/typing/globals/styles.js"; export interface Props extends Omit<GeneralFieldProps, "type"> { max?: number; accept?: string; multiple?: boolean; dragable?: boolean; styles?: FileStyles; disabled?: boolean; onchoose?: (files: File | File[]) => void; onretry?: () => void; onremove?: () => void; } export type Input = HTMLInputElement | null;