Bounce Sidebar
Bounce Sidebar renders items and a selected value with a springing indicator.
Practical React example
Navigate between a small set of workspace sections with a visible selected destination.
Before you copy and paste
Keep the example in the React rendering environment required by the imported component. Copy components/motion/bounce-sidebar.tsx and its returned support files from the Code tab; preserve the project-relative paths.
Listed package dependencies: clsx, motion, react, tailwind-merge.
Use the Code tab for the component files and installation instructions, then adapt the imports in this example to your project.
Navigate between a small set of workspace sections with a visible selected destination
// Usage adapted from beUI's pinned MIT source.
// Copyright (c) 2026 Saurabh Chauhan. See ./LICENSES.md.
"use client";
import { useState } from "react";
import { BounceSidebar } from "@/components/motion/bounce-sidebar";
const destinations = [
{ id: "overview", label: "Overview" },
{ id: "components", label: "Components" },
{ id: "motion", label: "Motion" },
{ id: "templates", label: "Templates" },
{ id: "changelog", label: "Changelog" },
];
export function BounceSidebarPreview() {
const [active, setActive] = useState("components");
return (
<div className="flex min-h-[360px] w-full items-center justify-center">
<BounceSidebar
items={destinations}
value={active}
onValueChange={setActive}
ariaLabel="beUI sections"
className="w-52"
listClassName="w-full"
itemClassName="text-base"
/>
</div>
);
}
Usage example adapted from beUI's pinned MIT source. Retain the source licence notices when copying.
Use item IDs for selection and real href values for destinations. Derive the active value from the current route when navigation is controlled by the router.
Customization
- BounceSidebarProps.items
- Required; BounceSidebarItem[].
- BounceSidebarProps.value
- Optional; string.
- BounceSidebarProps.defaultValue
- Optional; string.
- BounceSidebarProps.onValueChange
- Optional; (value: string) => void.
- BounceSidebarProps.ariaLabel
- Optional; string.
- BounceSidebarProps.className
- Optional; string.
- BounceSidebarProps.listClassName
- Optional; string.
- BounceSidebarProps.itemClassName
- Optional; string.
- BounceSidebarProps.indicatorClassName
- Optional; string.
Integration notes
- A highlighted item does not prove the route changed; keep selection and navigation synchronized.
- Supply meaningful labels and test disabled items with keyboard navigation.
Component source: beUI documentation . These examples describe the version imported into Rendyn. Upstream APIs may have changed; retain the source licence notices when adapting the code.
Give your agent taste.
The best way to use Rendyn is through MCP. Let your agent find the right component, compare previews and bring the source into your project.
All components are free. Sign up only to connect MCP.