react-date-picker
Version:
A date picker for your React app.
10 lines (9 loc) • 400 B
TypeScript
import Input from './Input.js';
type YearInputProps = {
maxDate?: Date;
minDate?: Date;
placeholder?: string;
valueType?: 'century' | 'decade' | 'year' | 'month' | 'day';
} & Omit<React.ComponentProps<typeof Input>, 'max' | 'min' | 'name'>;
export default function YearInput({ maxDate, minDate, placeholder, valueType, ...otherProps }: YearInputProps): React.ReactElement;
export {};