Navbar

The Navbar component renders a navigation bar with customizable icons.

Usage

Default


<Navbar
  items={[
    { icon: <FaHome />, label: "Home", path: "/" },
    { icon: <FaCompactDisc />, label: "Music", path: "/Music" },
    { icon: <FaImage />, label: "Images", path: "/Photography" },
    { icon: <FaCode />, label: "Code", path: "/Code" },
    { icon: <FaCommentAlt />, label: "Blog", path: "/Blog" },
    { icon: <FaPaintBrush />, label: "Design", path: "/Design" }
  ]}
  theme="primary"
  rounding="full"
  shadow="light"
/>

Props

Sortable data table
PropTypeDefaultDescription
itemsArray<{ label: string; icon?: ReactNode; path: string }>-Navigation items to render (each item should have a label, icon, and path).
theme"primary" | "secondary" | "tertiary" | "quaternary" | "clear"Configured DefaultTheme for navigation bar.
rounding"none" | "small" | "medium" | "large"Configured DefaultBorder radius for navigation items.
shadow"none" | "light" | "medium" | "strong" | "intense"Configured DefaultShadow depth for navigation items.
data-testidstring"nav-bar"Test id for querying the component in tests.