@teknim/rjsf-mantine
Version:
Mantine theme, fields and widgets for react-jsonschema-form
11 lines • 568 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import DateTimeInput from './DateTimeInput';
/** The `DateWidget` component uses the `DateTimeInput` changing the valueFormat to show `date`
*
* @param props - The `WidgetProps` for this component
*/
export default function DateWidget(props) {
const { valueFormat = 'YYYY-MM-DD', displayFormat, ...otherOptions } = props.options;
return (_jsx(DateTimeInput, { ...props, options: otherOptions, valueFormat: valueFormat, displayFormat: displayFormat || valueFormat }));
}
//# sourceMappingURL=DateWidget.js.map