UNPKG

@dreamkit/solid

Version:

DreamKit tools for Solid.

12 lines 709 B
import { ControlledValueProps } from "../primitives/createControlledValue.js"; import { InputType, InputValue } from "../utils/dom.js"; import { ComponentProps, JSXElement } from "solid-js"; export type { InputType }; export type InputProps<T extends InputType = InputType> = Omit<ComponentProps<"input">, "value" | "onChange" | "type"> & ControlledValueProps<InputValue<T>> & { type: T; onChange?: (value: InputValue<T>) => void; onNativeChange?: ComponentProps<"input">["onChange"]; }; export declare function Input(inProps: Omit<InputProps<"text">, "type">): JSXElement; export declare function Input<T extends InputType>(inProps: InputProps<T>): JSXElement; //# sourceMappingURL=Input.d.ts.map