@rjsf/core
Version:
A simple React component capable of building HTML forms out of a JSON schema.
12 lines (11 loc) • 473 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { getTemplate } from '@rjsf/utils';
/** The `URLWidget` component uses the `BaseInputTemplate` changing the type to `url`.
*
* @param props - The `WidgetProps` for this component
*/
export default function URLWidget(props) {
const { options, registry } = props;
const BaseInputTemplate = getTemplate('BaseInputTemplate', registry, options);
return _jsx(BaseInputTemplate, { type: 'url', ...props });
}