Atelier UI

Search components…

Search components…

Floating Navbar

Floating pill navbar that hides on scroll down and returns on scroll up or focus.

Edit in sandbox

Copy a prompt for your AI coding tool with the source, dependencies and usage

Props

FloatingNavbarProps

Also accepts all props of Omit<React.ComponentProps<"header">, "children">

PropTypeDefaultDescription
links* requiredFloatingNavLink[]——
logoReact.ReactNode——
actionReact.ReactNode——
scrollTargetReact.RefObject<HTMLElement | null>—Scroll container to watch; the window when omitted
defaultActivestring——

Install

$ npx shadcn@latest add https://chromotion.dev/r/floating-navbar.json

More like this