create modal to show
Is there a way to use a modal only to show an element and not to edit?
3 Replies
Hi @SetiZ. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
Yes, you can use a modal to show an element without allowing any editing. Below are examples using different libraries and hooks available in refine.
Using
useModal
Hook
The useModal
hook from refine allows you to manage a modal's visibility. You can use it to show an element without any editing functionality.
Source (https://refine.dev/docs/core/hooks/utilities/use-modal/)
Using Material UI Modal
You can also use the Material UI Modal to show an element. Here is an example:
Source (https://refine.dev/blog/material-ui-modal/#getting-started-with-material-ui-modal)
These examples demonstrate how to create a modal that only shows content without any editing capabilities. You can choose the approach that best fits your project's requirements.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------<@267689263246606336> kapa.ai is still learning and improving, please let us know how it did by reacting below
adverse-sapphire•2w ago
can you do it with antd?