Animated Sidebar

A composable application sidebar with morphing nested navigation that folds into an animated icon rail on desktop and becomes a focus-managed sheet on mobile.

Preview

People

Wednesday, July 29

Good morning, Ava.

Your workspace stays in place while the navigation folds down to a focused icon rail.

Active view

People

Install

Add it with the shadcn CLI, or copy the source manually.

$ bunx --bun shadcn add @beui/animated-sidebar

API Reference

AnimatedSidebarProvider

open?
boolean
defaultOpen?
boolean
true
onOpenChange?
((open: boolean) => void)
openMobile?
boolean
defaultOpenMobile?
boolean
false
onOpenMobileChange?
((open: boolean) => void)
style?
any

AnimatedSidebarMenuSubButton

icon?
any
href?
string
isActive?
boolean
false
disabled?
boolean
false
closeOnSelect?
boolean
true
target?
"_blank" | "_self" | "_parent" | "_top"
rel?
string
onSelect?
(() => void)
className?
string

AnimatedSidebarMenuButton

icon?
any
badge?
any
href?
string
isActive?
boolean
false
ariaExpanded?
boolean
disabled?
boolean
false
closeOnSelect?
boolean
target?
"_blank" | "_self" | "_parent" | "_top"
rel?
string
onSelect?
(() => void)
className?
string

Keep in mind

Some components on this site are inspired by or recreated from existing work across the web. I'm not here to take credit; just to learn, experiment, and sometimes push things a bit further. If something looks familiar and I forgot to mention you, reach out and I'll fix that right away.

Updated