Skip to content
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][base-ui] Vertical Accordion Alignment #36297

Closed
2 tasks done
kirill-develops opened this issue Feb 22, 2023 · 5 comments · Fixed by mui/base-ui#577
Closed
2 tasks done

[Accordion][base-ui] Vertical Accordion Alignment #36297

kirill-develops opened this issue Feb 22, 2023 · 5 comments · Fixed by mui/base-ui#577
Assignees
Labels
component: accordion This is the name of the generic UI component, not the React module! new feature New feature or request package: base-ui Specific to @mui/base

Comments

@kirill-develops
Copy link

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Summary 💡

Essentially your current accordion components but aligned vertically. The use cases are endless but an example would be a hero panel with an open accordion and as you click on the other accordions to expand, the open one shuts. Another use would be to have a horizontal list of cards with one open, and as you hover over the adjacent cards they expand.

I've provided multiple examples below:
example 1: hero bar implementation. features to add: click to expand or maintain expansion. after expansion becomes interactable in the case there are buttons or links and so on.

example 2: similar to above but in a card version

example 3: basic written style. the vertically aligned text is great addition

Examples 🌈

https://codepen.io/alvarotrigo/pen/eYyOLvd
https://codepen.io/alvarotrigo/pen/xxpKaXP

https://codepen.io/alvarotrigo/pen/jOYNvGP

Motivation 🔦

Building a dynamic page for travel location booking forms. My vision is to have a giant hero photo of the location with two vertical accordions on the right-hand side. the first accordion is the details of the location that expands halfway and shrinks the photo to 50%. the second accordion is the booking form that collapses both the image and details to the left

@kirill-develops kirill-develops added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Feb 22, 2023
@zannager zannager added the component: accordion This is the name of the generic UI component, not the React module! label Feb 23, 2023
@siriwatknp siriwatknp added new feature New feature or request package: base-ui Specific to @mui/base and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Feb 27, 2023
@siriwatknp
Copy link
Member

Labelled base to take this into consideration when building Accordion API

@kirill-develops
Copy link
Author

Thanks, team!

@mnajdova mnajdova changed the title Vertical Accordion Alignment [base] Vertical Accordion Alignment Apr 17, 2023
@michaldudak michaldudak changed the title [base] Vertical Accordion Alignment [Accordion][base-ui] Vertical Accordion Alignment Aug 18, 2023
@michaldudak michaldudak added this to the Base UI: Stable release milestone Jan 19, 2024
@mj12albert mj12albert removed this from the Base UI: v1 milestone Oct 24, 2024
@mj12albert mj12albert assigned mj12albert and unassigned siriwatknp Oct 24, 2024
@mj12albert mj12albert linked a pull request Oct 24, 2024 that will close this issue
@mj12albert
Copy link
Member

@siriwatknp
Copy link
Member

Copy link

This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue.
Now, if you have additional information related to this issue or things that could help future readers, feel free to leave a comment.

Note

@kirill-develops How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: accordion This is the name of the generic UI component, not the React module! new feature New feature or request package: base-ui Specific to @mui/base
Projects
Status: Recently completed
Development

Successfully merging a pull request may close this issue.

5 participants