Sidemenu

The Sidemenu component is a side menu component that displays a side menu with customizable colors and styling.

Elixir UI - Sidemenu Component

Menu

Close

Usage

Follow the steps below to add the Sidemenu Component to your project.

1

Add the import statement for the component

import { Sidemenu } from "@/components/elixir-ui/sidemenu"; 

2

Add the links and footer links props to the component

const menuLinks = [
  { title: "Projects", href: "#" },
  { title: "Agency", href: "#" },
  { title: "Expertise", href: "#" },
  { title: "Careers", href: "#" },
  { title: "Contact", href: "#" },
]

const footerLinks = [
{ title: "Instagram", href: "#" },
{ title: "LinkedIn", href: "#" },
{ title: "Twitter", href: "#" },
{ title: "Facebook", href: "#" },
]

3

Import the component in your project and use it

<div className="absolute top-10 right-10 flex justify-end h-full w-full">
  <Sidemenu
    imageSaturation={1.2}
    links={menuLinks}
    footerLinks={footerLinks}
  />
</div>

Props

PropTypeDefaultDescription
cardColorstring-The color of the card
cardImageURLstring-The URL of the image to be displayed
imageOpacitynumber1The opacity of the image
imageSaturationnumber1The saturation of the image
links{ title: string; href: string }[]-The links to be displayed
links.titlestring-The title of the link
links.hrefstring-The href of the link
footerLinks{ title: string; href: string }[]-The footer links to be displayed
footerLinks.titlestring-The title of the footer link
footerLinks.hrefstring-The href of the footer link