@rjsf/mui
Version:
Material UI 7 theme, fields and widgets for react-jsonschema-form
17 lines (16 loc) • 920 B
TypeScript
import { SliderProps } from '@mui/material/Slider';
import { FormContextType, GenericObjectType, RJSFSchema, StrictRJSFSchema, WidgetProps } from '@rjsf/utils';
/** Properties available for the `rjsfSlotProps` target of the RangeWidget. */
export interface RangeWidgetMuiProps extends GenericObjectType {
/** RJSF-specific slot props for targeting child elements of the RangeWidget. */
rjsfSlotProps?: {
/** Props applied to the MUI `Slider` component. */
slider?: SliderProps;
};
}
/** The `RangeWidget` component uses the `BaseInputTemplate` changing the type to `range` and wrapping the result
* in a div, with the value along side it.
*
* @param props - The `WidgetProps` for this component
*/
export default function RangeWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: WidgetProps<T, S, F>): import("react/jsx-runtime").JSX.Element;