@sanity/form-builder
Version:
Sanity form builder
31 lines • 878 B
TypeScript
import React from 'react';
import PatchEvent from '../../PatchEvent';
import { CommonProps } from './types';
declare type SchemaOptions = {
dateFormat?: string;
timeFormat?: string;
timeStep?: number;
calendarTodayLabel?: string;
};
export declare type Props = CommonProps & {
onChange: (event: PatchEvent) => void;
type: {
name: string;
title: string;
description?: string;
options?: SchemaOptions;
placeholder?: string;
};
};
export declare const DateTimeInput: React.ForwardRefExoticComponent<CommonProps & {
onChange: (event: PatchEvent) => void;
type: {
name: string;
title: string;
description?: string;
options?: SchemaOptions;
placeholder?: string;
};
} & React.RefAttributes<HTMLInputElement>>;
export {};
//# sourceMappingURL=DateTimeInput.d.ts.map