Installation
Usage
import NavbarFloating from "@/components/ruixen/navbar-floating";
export default function MyNavbar() {
return <NavbarFloating />;
}Props
| Prop | Type | Default | Description |
|---|---|---|---|
logo | React.ReactNode | Default logo | Custom logo element |
links | { label: string; href: string; active?: boolean }[] | Default links | Navigation links array |
actions | React.ReactNode | Default buttons | Custom action buttons |
className | string | - | Additional CSS classes |
Features
- Pill-shaped floating design
- Centered layout with max-width
- Rounded corners for modern look
- Shadow for depth effect
- Light and dark mode support

