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"; /** The `AltDateTimeWidget` is an alternative widget for rendering datetime properties. * It uses the AltDateWidget for rendering, with the `time` prop set to true by default. * * @param props - The `WidgetProps` for this component */ function AltDateTimeWidget({ time = true, ...props }) { const { AltDateWidget } = props.registry.widgets; return _jsx(AltDateWidget, { time: time, ...props }); } export default AltDateTimeWidget;