UNPKG

@teknim/rjsf-mantine

Version:

Mantine theme, fields and widgets for react-jsonschema-form

11 lines 589 B
import { jsx as _jsx } from "react/jsx-runtime"; import DateTimeInput from './DateTimeInput'; /** The `DateWidget` component uses the `DateTimeInput` changing the valueFormat to show `datetime` * * @param props - The `WidgetProps` for this component */ export default function DateTimeWidget(props) { const { valueFormat = 'YYYY-MM-DD HH:mm:ss', displayFormat, ...otherOptions } = props.options; return (_jsx(DateTimeInput, { ...props, options: otherOptions, valueFormat: valueFormat, displayFormat: displayFormat || valueFormat })); } //# sourceMappingURL=DateTimeWidget.js.map