UNPKG

@mitcsutt/kiln-forms

Version:

Kiln forms: typed React forms on TanStack Form, in component or JSON schema mode, rendered through kiln-ui

11 lines (10 loc) • 665 B
declare const PASSED_KEYS: readonly ["label", "description", "hint", "optional", "labelHidden", "layout", "size", "className", "style", "title"]; type Passed = (typeof PASSED_KEYS)[number]; /** * The props of a text-input date or time field that still mean something on a kiln-ui picker: the * label props, the control size, the wrapper's `className`/`style`, and `aria-*`/`data-*` * attributes. A native input's own props (`placeholder`, `leading`, `autoComplete`, input event * handlers) have no `<input>` to land on, so they stay behind. */ export declare function pickerFieldProps<P extends object>(props: P): Pick<P, Extract<keyof P, Passed>>; export {};