refine icon indicating copy to clipboard operation
refine copied to clipboard

[FEAT] useDrawer hook for Ant Design

Open codercody opened this issue 11 months ago • 3 comments

Is your feature request related to a problem? Please describe.

Antd currently has useDrawerForm which works for creating/editing/cloning, but I often use drawers for showing too. I don't want to manage the Drawer component myself because I'm trying to rely on Refine as much as possible.

Describe alternatives you've considered

Alternative solutions: manage the Drawer component myself or just use modals for all my show views.

Additional context

We already have a precedent for this paradigm with useModal/useModalForm. Also the code is already there in useDrawerForm, it just needs to be refactored to expose useDrawer separately and then it can be imported into useDrawerForm.

Describe the thing to improve

It would be nice to have a useDrawer hook for helping me manage the Ant Design Drawer component.

codercody avatar May 04 '25 10:05 codercody

Hello @codercody, It would be great 🚀 Do you want to work on this?

alicanerdurmaz avatar May 12 '25 07:05 alicanerdurmaz

Let me know if I can work on this. Thanks.

Dev5401 avatar May 13 '25 16:05 Dev5401

Hey, I can work on this. Kindly assign me this

zuberkhan01st avatar May 17 '25 17:05 zuberkhan01st

Hey @codercody, could you review this PR ? @arndom did a great job. It would be great if you could check whether it also covers your needs.

alicanerdurmaz avatar Jul 31 '25 05:07 alicanerdurmaz