shelving
Version:
Toolkit for using data in JavaScript.
13 lines (12 loc) • 680 B
TypeScript
import type { ReactElement } from "react";
import type { DateInputType } from "../../schema/DateSchema.js";
import { type PossibleDate } from "../../util/date.js";
import { type ValueInputProps } from "./Input.js";
export interface DateInputProps extends ValueInputProps<string, PossibleDate> {
min?: PossibleDate | undefined;
max?: PossibleDate | undefined;
input?: DateInputType | undefined;
step?: number | undefined;
}
export declare function DateInput({ name, title, placeholder, // Placeholder must be defined or `:placeholder-shown` CSS rules won't show.
required, disabled, message, value, onValue, min, max, input, step, }: DateInputProps): ReactElement;