Accordion item content: add width and height css variables #1258
bogdan0083
started this conversation in
Ideas
Replies: 1 comment
-
The accordion and collapsible can be composed together in the userland code as shown here: We'll update the docs to include patterns like this. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
🚀 Feature request
It would be cool to be able to get item content
width
andheight
through css variables. This would allow us to create slide animations similar to new Collapsible component.🧱 Problem Statement / Justification
Right now it's quite a challenge to create slide animations on item content. We need to use
Transition
component and compute size by hand. Having css variables on each item content would make life easier.✅ Proposed solution or API
The solution would be to use the approach similar to Collapsible component. Compute size of each content on the initial mount and recompute it on open/close.
Beta Was this translation helpful? Give feedback.
All reactions