react-dynamic-snbar
Version:
Responsive React sidebar with role-based navigation support and easy customization.
33 lines (30 loc) • 670 B
TypeScript
import React, { ReactNode } from 'react';
interface Dropdown {
label: string;
path: string;
icon: ReactNode;
}
interface NavItem {
category: string;
label: string;
roles: string[];
path?: string;
icon: ReactNode;
children?: Dropdown[];
}
interface SidebarProps {
navItems: NavItem[];
logo: string;
title: string;
setMaxWidth?: (val: boolean) => void;
role?: string;
fontFamily?: string;
backgroundColor?: string;
color?: string;
categoryColor?: string;
activeBg?: string;
activeColor?: string;
toggleBtn?: boolean;
}
declare const Sidebar: React.FC<SidebarProps>;
export { Sidebar };