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

Feat: Drawer component #914

Closed
dgonzalezr opened this issue Mar 6, 2024 · 0 comments · Fixed by #918
Closed

Feat: Drawer component #914

dgonzalezr opened this issue Mar 6, 2024 · 0 comments · Fixed by #918
Assignees
Labels
feature 🛠 New feature or request

Comments

@dgonzalezr
Copy link
Collaborator

dgonzalezr commented Mar 6, 2024

Describe the feature

We need a Drawer component that consumers can use in their projects/apps.

Describe the use case for this feature

Sometimes users or consumers need to display information details from a list without navigating away from it.

Describe the solution you'd like

The drawer should have 3 slots:

  • Header or Title
  • Body
  • Footer

The drawer should be able to slide in/out from a side of the page, the side can be set through a property/attribute (e.g.: placement: 'left' | 'right'. Should we consider the top and bottom as well? (e.g.: https://ant.design/components/drawer).

The user can close the drawer by clicking the X icon on the Header (near the title) or clicking outside the drawer. Still, this behavior should be flexible, meaning that the drawer should allow consumers to set whether the drawer closes when clicking outside (true by default).

The width of the drawer can be customized as well, according to Figma: 320px default.

Events to consider

  • open: triggered when the drawer will open
  • close: triggered when the drawer will close
  • afterClose: triggered after the drawer has closed
  • afterOpen: triggered after the drawer has open

Related Code

No response

Additional Information

Figma: https://www.figma.com/file/2VS47PTSkQWJkr7H6DpAdR/BEEQ-Design-System-(v1.0)?type=design&node-id=3991%3A54955&mode=design&t=IM6eKno8O3mv7ODZ-1

@dgonzalezr dgonzalezr added the feature 🛠 New feature or request label Mar 6, 2024
@dgonzalezr dgonzalezr moved this to Backlog in BEEQ Design System Mar 6, 2024
@dgonzalezr dgonzalezr moved this from Backlog to Ready in BEEQ Design System Mar 6, 2024
@Cata1989 Cata1989 moved this from Ready to In progress in BEEQ Design System Mar 7, 2024
@dgonzalezr dgonzalezr linked a pull request Mar 7, 2024 that will close this issue
7 tasks
@Cata1989 Cata1989 moved this from In progress 🛠️ to Review 🔍 in BEEQ Design System Mar 13, 2024
@github-project-automation github-project-automation bot moved this from Review 🔍 to Done 🎉 in BEEQ Design System Mar 19, 2024
@dgonzalezr dgonzalezr moved this from Done 🎉 to Released 🚀 in BEEQ Design System Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature 🛠 New feature or request
Projects
Status: Released 🚀
Development

Successfully merging a pull request may close this issue.

2 participants