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

[Drawer] Create the unstyled component #38

Open
Tracked by #10
michaldudak opened this issue Jul 27, 2023 · 7 comments
Open
Tracked by #10

[Drawer] Create the unstyled component #38

michaldudak opened this issue Jul 27, 2023 · 7 comments
Labels
component: drawer This is the name of the generic UI component, not the React module! new feature New feature or request

Comments

@michaldudak
Copy link
Member

michaldudak commented Jul 27, 2023

This is the place to gather ideas, measure interest and discuss the API and implementation details of the drawer component.

See #10 for the umbrella issue to track progress on Base UI and mui/material-ui#6218 for the problem this project solves.

@michaldudak michaldudak changed the title [Drawer][base] Create the unstyled component and hook [Drawer][base-ui] Create the unstyled component and hook Aug 18, 2023
@michaldudak michaldudak transferred this issue from mui/material-ui Feb 27, 2024
@michaldudak michaldudak changed the title [Drawer][base-ui] Create the unstyled component and hook [Drawer] Create the unstyled component and hook Feb 27, 2024
@michaldudak michaldudak added new feature New feature or request component: drawer This is the name of the generic UI component, not the React module! labels Feb 27, 2024
@VladimirSamokhin

This comment was marked as spam.

@MinhMeoNguyen0
Copy link

Can you add something that is simliar to this
image

@michaldudak
Copy link
Member Author

@MinhMeoNguyen0, this is unrelated to the Drawer component.
I can imaging a Table of contents component that does this, but we're not currently planning anything along these lines. Feel free to create an issue and we can look into it if there is significant interest from the community.

@michaldudak michaldudak changed the title [Drawer] Create the unstyled component and hook [Drawer] Create the unstyled component Nov 6, 2024
@borabaloglu
Copy link

I implemented a drawer component using dialog component. Here you can find the code and demo here. Are you planning to have something with advanced animations? Otherwise it's like semi-styled dialog component.

@michaldudak
Copy link
Member Author

We haven't specced it yet. Do you have something specific in mind when referring to "advanced animations"?

@borabaloglu
Copy link

I implemented the component in a way that feels like a mobile bottom sheet (e.g. https://github.com/gorhom/react-native-bottom-sheet). So it allows user interactions like dragging the drawer up and down, which also allows implementing snap points. What I mean by referring to advanced animations is having animations (drag animation, spring animation, rubber band animation) handled by the unstyled drawer component.

I don't know how flexible the data-starting-style and data-ending-style are but I couldn't combine these selectors with drag animations.

@michaldudak
Copy link
Member Author

We're not going to provide any animations out of the box - as the components are unstyled, we can only provide style hooks that you can use to create your own animations. The Dialog component is already flexible enough to enable creating layouts such as mobile navigation on https://base-ui.com, but we'll look into making the most common scenarios easier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: drawer This is the name of the generic UI component, not the React module! new feature New feature or request
Projects
Status: Backlog
Development

No branches or pull requests

4 participants