ThiloDesign System
DV

Floating Nav Bar

Custom

A floating segmented control that sits over content. Each segment is an independent on/off toggle used to show or hide a region of the layout — sidebar, board, or right panel. Active segments fill with the primary color.

@/components/ui/floating-nav-bar

Live demo — toggle the panels

Sidebar
Board

Click any segment — the matching panel shows or hides instantly. This is exactly how the bar works at the bottom of the app shell.

Item states

Active (on)

Inactive (off)

Mixed group

FloatingNavBar props

PropTypeDescription
classNamestringExtra classes on the floating container (e.g. positioning).
childrenReactNodeFloatingNavItem segments.

FloatingNavItem props

PropTypeDescription
iconLucideIconOptional leading icon.
activebooleanWhether the segment is toggled on. Default: false
onClick() => voidFires on click — flip your state here.
childrenReactNodeSegment label.

On this page