Skip to content

Conversation

@rohanchkrabrty
Copy link
Contributor

Description

Breaking Changes

  • Data attributes changed: data-state="expanded"data-open, data-state="collapsed"data-closed
  • Data attribute format: Boolean data attributes now use presence-based format (e.g., data-collapse-disabled instead of data-collapse-disabled="true")

Changes

  • Removed @radix-ui/react-collapsible dependency - component now uses plain useState for state management
  • Component no longer extends Radix's Collapsible.Root props, now extends ComponentPropsWithoutRef<'aside'>
  • Added explicit defaultOpen = true default value
  • Simplified internal state handling with direct useState instead of Collapsible wrapper

Docs & Tests

  • Updated CSS selectors to use new data attributes ([data-open], [data-closed], [data-collapse-disabled])
  • Updated test assertions for data-closed attribute instead of data-state="collapsed"
  • Updated onOpenChange callback signature remains (open: boolean) => void

@vercel
Copy link

vercel bot commented Jan 30, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
apsara Ready Ready Preview, Comment Jan 30, 2026 9:52am

@rohanchkrabrty rohanchkrabrty changed the base branch from main to base-scrollarea January 30, 2026 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants