Floating Dock

Below is a beautiful ios style floating doc component that can be used as a navigation bar

FloatingDock

Installation

$ pnpm dlx shadcn@latest add https://pulseui-henna.vercel.app/registry/FloatingDock.json

Props

PropTypeisCompulsoryDescription
links
{ title: string; icon: React.ReactNode; href: string }[]
true

The list of all the navigation items

Usage

Navbar.tsx
1import { House, Terminal, RefreshCcw } from "lucide-react"; 2import FloatingDock from "@/components/FloatingDock"; 3export default function NavBar(){ 4const links = [ 5 { 6 title: "Home", 7 icon: ( 8 <House 9 size={20} 10 className="h-full w-full text-neutral-500 dark:text-neutral-300" 11 /> 12 ), 13 href: "#", 14 }, 15 { 16 title: "Terminal", 17 icon: ( 18 <Terminal 19 size={20} 20 className="h-full w-full text-neutral-500 dark:text-neutral-300" 21 /> 22 ), 23 href: "#", 24 }, 25 { 26 title: "Refresh", 27 icon: ( 28 <RefreshCcw 29 size={20} 30 className="h-full w-full text-neutral-500 dark:text-neutral-300" 31 /> 32 ), 33 href: "#", 34 }, 35 ]; 36 37 return ( 38 <FloatingDock links={links}/> 39 ); 40}