@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.
12 lines (11 loc) • 492 B
TypeScript
import type { GeneralFieldProps } from "../../logic/typing/globals/proptypes.js";
import type { OptionItem } from "../../logic/typing/globals/interfaces.js";
import type { OptionStyles } from "../../logic/typing/globals/styles.js";
export interface Props extends Omit<GeneralFieldProps, "type"> {
options: OptionItem[];
styles?: OptionStyles;
multiple?: boolean;
disabled?: boolean;
onchoose?: (option: OptionItem) => void;
}
export type Option = HTMLInputElement | null;