@sjsf/shadcn-theme
Version:
The shadcn-svelte based theme for svelte-jsonschema-form
14 lines (13 loc) • 500 B
TypeScript
import type { HTMLInputAttributes, HTMLInputTypeAttribute } from "svelte/elements";
import type { WithElementRef } from "bits-ui";
type InputType = Exclude<HTMLInputTypeAttribute, "file">;
type Props = WithElementRef<Omit<HTMLInputAttributes, "type"> & ({
type: "file";
files?: FileList;
} | {
type?: InputType;
files?: undefined;
})>;
declare const Input: import("svelte").Component<Props, {}, "ref" | "files" | "value">;
type Input = ReturnType<typeof Input>;
export default Input;