@rjsf/core
Version:
A simple React component capable of building HTML forms out of a JSON schema.
11 lines (10 loc) • 421 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
/** The `HiddenWidget` is a widget for rendering a hidden input field.
* It is typically used by setting type to "hidden".
*
* @param props - The `WidgetProps` for this component
*/
function HiddenWidget({ id, value, }) {
return _jsx("input", { type: 'hidden', id: id, name: id, value: typeof value === 'undefined' ? '' : value });
}
export default HiddenWidget;