@codecademy/gamut
68.6.268.6.3-alpha.57e1cd.0
dist/DatePicker/types.d.ts~
dist/DatePicker/types.d.tsModified+6
Index: package/dist/DatePicker/types.d.ts
===================================================================
--- package/dist/DatePicker/types.d.ts
+++ package/dist/DatePicker/types.d.ts
@@ -91,8 +91,10 @@
* />
* ```
*/
onSelected: (date: Date | null) => void;
+ /** Description to display between the label and the input. */
+ description?: string;
}
export interface DatePickerRangeProps extends DatePickerBaseProps<'range'> {
/** Controlled start date. Pass `null` to not have a default start date. Pass a `Date` to have a default start date.
*
@@ -158,7 +160,11 @@
* />
* ```
*/
onEndSelected: (date: Date | null) => void;
+ /** Description to display between the label and the start date input. */
+ startDateDescription?: string;
+ /** Description to display between the label and the end date input. */
+ endDateDescription?: string;
}
export type DatePickerProps = DatePickerSingleProps | DatePickerRangeProps;
export {};