@mitcsutt/kiln-forms
Version:
Kiln forms: typed React forms on TanStack Form, in component or JSON schema mode, rendered through kiln-ui
32 lines (31 loc) • 1.05 kB
TypeScript
import { type SliderFieldProps as UiSliderFieldProps } from '@mitcsutt/kiln-ui';
import type { ControlledKeys } from '../internal/controlledKeys.js';
import { type CommonFieldProps } from '../../../hooks/useFieldBinding.js';
export interface FormSliderFieldProps extends Omit<UiSliderFieldProps, ControlledKeys>, CommonFieldProps<number> {
}
/**
* One number from a continuous range.
*
* @remarks
* It renders kiln-ui's {@link SliderField | SliderField}.
*
* @example In a schema
* ```json
* {
* "kind": "slider",
* "name": "walk",
* "label": "Longest walk to a stop",
* "min": 200,
* "max": 2000,
* "step": 100
* }
* ```
*
* @value `number`
* @empty none: it always has a value
*
* @privateRemarks
* One number from a continuous range (§7.2 `slider`). Always has a value (no empty state);
* clearing is not a concept a continuous control has.
*/
export declare const FormSliderField: import("../../../kit/contracts.js").FieldDef<import("../../../kit/contracts.js").ExactContract<number>, FormSliderFieldProps>;