@rjsf/antd
Version:
Ant Design theme, fields and widgets for react-jsonschema-form
15 lines (14 loc) • 864 B
TypeScript
import type { FormContextType, RJSFSchema, StrictRJSFSchema, WidgetProps } from '@rjsf/utils';
type DateWidgetProps<T, S extends StrictRJSFSchema, F extends FormContextType> = WidgetProps<T, S, F> & {
showTime?: boolean;
};
/** The `DateWidget` component uses the `BaseInputTemplate` changing the type to `date` and transforms
* the value to undefined when it is falsy during the `onChange` handling.
*
* @param props - The `WidgetProps` for this component
*/
declare function DateWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({ disabled, registry, id, onBlur, onChange, onFocus, placeholder, readonly, value, showTime, }: DateWidgetProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
declare namespace DateWidget {
var getPopupContainerCallback: () => (node: any) => any;
}
export default DateWidget;