UNPKG

@rjsf/core

Version:

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

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