Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Accordion item content: add width and height css variables #1257

Closed
bogdan0083 opened this issue Feb 18, 2024 · 0 comments
Closed

Accordion item content: add width and height css variables #1257

bogdan0083 opened this issue Feb 18, 2024 · 0 comments

Comments

@bogdan0083
Copy link

🚀 Feature request

It would be cool to be able to get item content width and height 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.

@chakra-ui chakra-ui locked and limited conversation to collaborators Feb 18, 2024
@segunadebayo segunadebayo converted this issue into discussion #1258 Feb 18, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant