@trussworks/react-uswds
Version:
React USWDS 3 component library
13 lines (12 loc) • 455 B
TypeScript
import { JSX } from 'react';
import { OptionalTextInputProps } from '../TextInput/TextInput';
export type DateInputProps = {
id: string;
name: string;
label: string;
unit: 'month' | 'day' | 'year';
maxLength: number;
minLength?: number;
} & OptionalTextInputProps;
export declare const DateInput: ({ id, name, label, unit, maxLength, minLength, className, ...inputProps }: DateInputProps) => JSX.Element;
export default DateInput;