Skip to content

feat(sidebar): add expand sidebar on hover functionality #7688

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

adeshgg
Copy link

@adeshgg adeshgg commented Jun 26, 2025

Description

Added a new prop expandOnHover to SidebarProvider, that would expand the sidebar on hover.

sidebar.webm

Changes

Updated the following files:

  • apps/v4/registry/new-york-v4/ui/sidebar.tsx
  • apps/www/registry/default/ui/sidebar.tsx
  • apps/www/registry/new-york/ui/sidebar.tsx

Ran pnpm registry:build on root to generate the sidebar style json files

Impact

Will add a new prop to the SidebarProvider Component that expands the sidebar on hover (default: false).

Testing

  • ✅ Manual verification of the sidebar hover functionality
  • ✅ Other Component functionality remains unchanged
  • ✅ Ran pnpm test, all tests passing

Closes #5766

Copy link

vercel bot commented Jun 26, 2025

@adeshgg is attempting to deploy a commit to the shadcn-pro Team on Vercel.

A member of the Team first needs to authorize it.

@adeshgg adeshgg force-pushed the feat/sidebar-hover branch from 2a0c72f to 227c546 Compare June 26, 2025 06:50
@adeshgg adeshgg changed the title feat(sidebar): add expand sidebar on hover functionality #5766 feat(sidebar): add expand sidebar on hover functionality Jun 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feat]: Semi-open sidebar on hover
1 participant