UNPKG

@prokodo/ui

Version:

UI components for production-grade Next.js + Headless CMS (Strapi, Contentful, Headless WordPress) websites by prokodo – built for Core Web Vitals & SEO.

28 lines (27 loc) 825 B
import type { InputProps } from "../input"; import type { Dayjs } from "dayjs"; export type DatePickerValue = Dayjs | string | null; export type DatePickerErrorTranslations = { required?: string; minDate?: string; maxDate?: string; }; export interface DatePickerProps extends Omit<InputProps, "onChange" | "value" | "errorTranslations" | "type"> { multiline?: false; rows?: undefined; minRows?: undefined; maxRows?: undefined; label: string; name: string; required?: boolean; errorText?: string; helperText?: string; value?: DatePickerValue; minDate?: DatePickerValue; maxDate?: DatePickerValue; onChange?: (value: DatePickerValue) => void; translations?: DatePickerErrorTranslations; withTime?: boolean; format?: string; minuteStep?: number; }