UNPKG

@rjsf/core

Version:

A simple React component capable of building HTML forms out of a JSON schema.

12 lines (11 loc) 485 B
import { jsx as _jsx } from "react/jsx-runtime"; import { getTemplate } from '@rjsf/utils'; /** The `UpDownWidget` component uses the `BaseInputTemplate` changing the type to `number`. * * @param props - The `WidgetProps` for this component */ export default function UpDownWidget(props) { const { options, registry } = props; const BaseInputTemplate = getTemplate('BaseInputTemplate', registry, options); return _jsx(BaseInputTemplate, { type: 'number', ...props }); }