UNPKG

cdbreact

Version:

Elegant UI Kit and reusable components for building mobile-first, responsive webistes and web apps

23 lines (22 loc) 695 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 };