Liquid Frame

The Liquid Frame component is a compact and interactive sidebar menu, ideal for responsive navigation. It offers a toggleable design with smooth animations, making it a versatile choice for modern web applications.

Usage

Follow the steps below to add the Liquid Frame Component to your project.

1

Add the import statement for the component

import LiquidFrame from "@/components/elixir-ui/liquid-frame"; 

2

Import the component in your project and use it

<div className="flex h-full w-full items-center justify-center">
  <LiquidFrame
    src="/components/liquid-frame/zenitsu.jpg"
    alt="Zenitsu from Demon Slayer"
    width={300}
    height={300}
    className="h-full w-full rounded-md"
    variant="default"
  />
</div>

Props

PropTypeDefaultDescription
isOpenbooleanfalseControls the visibility of the sidebar
onToggle() => void-Callback function when toggle button is clicked
classNamestring-Additional CSS classes
childrenReactNode-Menu items to be rendered