@trussworks/react-uswds
Version:
React USWDS 3 component library
19 lines (18 loc) • 689 B
TypeScript
import { JSX } from 'react';
type BaseTimePickerProps = {
id: string;
name: string;
onChange: (val?: string) => void;
label: string;
defaultValue?: string;
disabled?: boolean;
minTime?: string;
maxTime?: string;
step?: number;
/** Recommended text: "Select a time from the dropdown. Type into the input to filter options." */
hint?: string;
className?: string;
};
export type TimePickerProps = BaseTimePickerProps & Omit<JSX.IntrinsicElements['input'], 'onChange'>;
export declare const TimePicker: ({ id, name, onChange, label, defaultValue, disabled, minTime, maxTime, step, hint, className, }: TimePickerProps) => JSX.Element;
export {};