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