goobs-frontend
Version:
A comprehensive React-based libary for building modern web applications
32 lines • 1.23 kB
TypeScript
import { default as React } from 'react';
import { FieldStyleOverrides } from '../Shell';
export interface SliderProps {
/**
* The slider value. Optional so the field can auto-bind to the surrounding
* `<Form>` via `name` when no explicit value is supplied; existing callsites
* that pass an explicit value take the unchanged back-compat path.
*/
value?: number;
onChange?: (value: number) => void;
min?: number;
max?: number;
step?: number;
label?: string;
helperText?: string;
/** Error message rendered below the input; sets aria-invalid. */
error?: string | boolean;
/** Stable test selector — emitted as `data-field` on the wrapper. */
dataField?: string;
/** Stable test selector — emitted as `data-field-name` on the wrapper. */
dataFieldName?: string;
/**
* Form-engine binding key. Forwarded to the input as `name` for native form
* submission and used by `useFieldBinding`/`FieldShell` to auto-bind value,
* error, and required to the surrounding `<Form>`.
*/
name?: string;
styles?: FieldStyleOverrides;
}
declare const Slider: React.FC<SliderProps>;
export default Slider;
//# sourceMappingURL=index.d.ts.map