@coreui/react-pro
Version:
UI Components Library for React.js
12 lines (9 loc) • 435 B
JavaScript
import { createContext } from 'react';
/**
* Provides the per-level accordion state to the direct children (`CNavGroup`, `CNavLink`) of a
* `CSidebarNav` or a parent `CNavGroup`. `null` means the consumer is rendered outside a sidebar
* navigation, in which case groups fall back to their own local state.
*/
const CNavGroupContext = createContext(null);
export { CNavGroupContext };
//# sourceMappingURL=CNavGroupContext.js.map