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

Sidebar component should be able to slide. #6135

Closed
ghost opened this issue May 3, 2023 · 1 comment
Closed

Sidebar component should be able to slide. #6135

ghost opened this issue May 3, 2023 · 1 comment
Labels

Comments

@ghost
Copy link

ghost commented May 3, 2023

Version of antd-mobile

5.29.1

Operating system and its version

No response

Browser and its version

No response

Sandbox to reproduce

No response

What happened?

In mobile, a common pattern is to have a sidebar that should is slid in when the user clicks on a button and can be slid off when the user clicks on the same button or someplace else. As an example see the twitter example
image

Currently Ant mobile provides a Sidebar component but it does not support sliding in and out. This behavior is possible on Ant Design Desktop using the Drawer component. We should have something similar in the ant mobile too

Relevant log output

No response

@ghost ghost added the bug label May 3, 2023
@miracles1919
Copy link
Contributor

You can use the Popup, witch provides pop-up direction

<Popup
  position='left'
  bodyStyle={{ width: '60vw' }}
>
   {contert}
</Popup>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant