@coreui/react-pro
Version:
UI Components Library for React.js
27 lines (26 loc) • 1.08 kB
TypeScript
import React from 'react';
import { CDateRangePickerProps } from '../date-range-picker/CDateRangePicker';
export interface CDatePickerProps extends Omit<CDateRangePickerProps, 'calendars' | 'endDate' | 'range' | 'onEndDateChange' | 'onStartDateChange' | 'ranges' | 'selectEndDate' | 'startDate'> {
/**
* Initial selected date.
*/
date?: Date | string | null;
/**
* The id global attribute defines an identifier (ID) that must be unique in the whole document.
*
* **[Deprecated since v5.3.0]** The name attributes for input element is generated based on this property until you define name prop ex.:
* - \{id\}-date
*/
id?: string;
/**
* The name attribute for the input element.
*
* @since 5.3.0
*/
name?: string;
/**
* Callback fired when the date changed.
*/
onDateChange?: (date: Date | null, formatedDate?: string | undefined) => void;
}
export declare const CDatePicker: React.ForwardRefExoticComponent<CDatePickerProps & React.RefAttributes<HTMLDivElement | HTMLLIElement>>;