UNPKG

extended-dynamic-forms

Version:

Extended React JSON Schema Form (RJSF) v6 with custom components, widgets, templates, layouts, and form events

27 lines (25 loc) 1.01 kB
import { FC } from 'react'; import { WidgetProps } from '@rjsf/utils'; /** * DateTime Widget for date and time selection * * Can be configured to use either: * 1. Ant Design DatePicker with showTime option (default) * 2. Native HTML datetime-local input (when useNativeInput is true) * * Supports Ant Design DatePicker API properties through uiSchema options: * - useNativeInput: Use HTML datetime-local input instead of DatePicker * - format: DateTime format (default: 'YYYY-MM-DD HH:mm:ss') * - showTime: Time picker options (true or object with time picker config) * - placeholder: Input placeholder text * - placement: Dropdown placement * - size: Component size ('small', 'middle', 'large') * - bordered: Show border * - status: Validation status ('error', 'warning') * - style: Custom CSS styles * - className: Custom CSS class * - And all other Ant Design DatePicker props */ declare const DateTimeWidget: FC<WidgetProps>; export default DateTimeWidget; export { DateTimeWidget };