Aswin Pratapsingh

EclipseNavBar

Navigation

About

A minimal navigation bar featuring a solar-eclipse dark mode switch, blending aesthetics with functionality.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds EclipseNavBar to your project and fits it to your theme.

Code

How EclipseNavBar is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { EclipseNavBar } from "@/components/ui/eclipse-nav-bar";
import { useState, useEffect } from "react";
export default function DemoOne() {
  const [isDark, setIsDark] = useState(false)
  const items = [
    {label:"Home", link:"/"},
    {label:"About", link:"/Two"},
    {label:"Contact", link:"/Three"}
  ]
  useEffect(()=>{
    document.documentElement.classList.toggle("dark", isDark)
  },[isDark])
  
  
  
  return <div className='w-screen h-fit p-4 flex justify-center items-center transition-theme'>
        <EclipseNavBar setDark={()=>{setIsDark(!isDark)}} items = {items}/>
      </div>;
}

Dependencies

More in Navigation

View all
  • Sidebar

    Sidebar

    286
  • Navbar

    Navbar

    1
  • Tabs

    Tabs

    15
  • Sidebar

    Sidebar

    348
  • Numberless Pagination with Text

    Numberless Pagination with Text

    11
  • Pagination

    Pagination

    108
  • Oversized 404 Numeral

    Oversized 404 Numeral

    57
  • Breadrcrumb

    Breadrcrumb

    4