UNPKG

flexible-calendar-ui

Version:

Customizable React calendar components with monthly and yearly views

23 lines (22 loc) 707 B
import React, { ReactNode } from 'react'; export interface ThemeContextType { primaryColor: string; secondaryColor: string; textColor: string; presentColor: string; absentColor: string; leaveColor: string; holidayColor: string; dayOffColor: string; inactiveColor: string; headerBgColor: string; borderRadius: string; headerTextColor: string; } export declare const ThemeContext: React.Context<ThemeContextType>; export interface ThemeProviderProps { children: ReactNode; theme?: Partial<ThemeContextType>; } export declare const ThemeProvider: React.FC<ThemeProviderProps>; export declare const useTheme: () => ThemeContextType;