UNPKG

cdbreact

Version:

Elegant UI kit and reusable components for building mobile-first, responsive websites and web apps

23 lines (22 loc) 702 B
import React from 'react'; export declare type SidebarContextType = { toggled?: boolean; handleToggleSidebar?: (val: boolean) => void; textColor?: string; backgroundColor?: string; breakpoint?: number; }; export declare const SidebarContext: React.Context<SidebarContextType>; interface Props { children?: React.ReactNode; className?: string; textColor?: string; backgroundColor?: string; breakpoint?: number; toggled?: boolean; minWidth?: string; maxWidth?: string; } declare const Sidebar: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>; export default Sidebar; export { Sidebar as CDBSidebar };