Home

Features

Showcase

About

Contact

How to use

01Import the component
import DynamicIslandNav from "@/components/shitui/DynamicIslandNav";
02Use in your application
export default function Navbar() {
return (
  <DynamicIslandNav
    theme="dark"
    compactOnScroll={true}
    onSelect={(id) => console.log('Selected section:', id)}
  />
);
}

Features

Fluid spring-driven pill that smoothly expands and contracts based on scroll and interaction.

Props

PropTypeDefaultDescription
itemsDynamicIslandNavItem[]defaultItemsArray of navigation items with id, label, icon, section, and optional href.
activeIdstring-Controlled active item identifier.
onSelect(id: string) => void-Callback fired when an item is selected or clicked.
theme'dark' | 'light''dark'Color theme styling for the island pill and text.
compactOnScrollbooleantrueWhether the island automatically condenses into a compact pill on scroll.
scrollOffsetnumber140Scroll distance in pixels before triggering the compact mode.
classNamestring-Optional additional CSS classes for custom styling.