@preamp/datepicker
Version:
VideoAmp's Component library
24 lines (23 loc) • 1.04 kB
TypeScript
import * as React from 'react';
export interface NavBarProps {
/** Date Picker NavBar root class */
className?: string;
/** The month to display in the calendar and it causes the calendar to re-render when its value changes */
month?: Date;
/** The month to set as the previous month */
previousMonth?: Date;
/** The month to set as the next month */
nextMonth?: Date;
/** ID or key for the element. */
id?: string;
/** Optional style to apply - inline styles should NOT be used unless absolutely necessary. */
style?: React.CSSProperties;
/** Callback handler for a click event on the previous button */
onPreviousClick?(): void;
/** Callback handler for a click event on the next button */
onNextClick?(): void;
}
export declare type CustomNavBarComponent = (props: NavBarProps) => React.ReactElement<any>;
declare type CustomNavBarExtendedComponent = (dataUI: string) => CustomNavBarComponent;
export declare const CustomNavBar: CustomNavBarExtendedComponent;
export {};