The Controlled example from the Sidebar docs.
npx shadcn@latest add @hextaui/sidebar-controlled
sidebar-controlled