Date picker in mantine UI
Hi, I see that refine is using an older version of mantine so the DatePicker does not exist. Is there any workaround?
5 Replies
Hi @tads8799. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
I'm sorry for the confusion, but based on the information provided, refine uses Ant Design, not Mantine. For date selection, you can use the Ant Design Date Picker (https://ant.design/components/date-picker/) component directly in your refine project. Here's an example of how to use it:
You can find more details and the source code for this example in the refine documentation (https://refine.dev/docs/examples/inputs/datePicker/).
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
<@577213996344803338> kapa.ai is still learning and improving, please let us know how it did by reacting below
optimistic-gold•11mo ago
I'm using the Mantine UI library @kapa.ai
Let me check the knowledge base for you. One moment! :books:
----------------------
I'm sorry, but the provided extracts do not contain information about a workaround for using the DatePicker component from Mantine in refine. However, refine does support Mantine and you can import Mantine components and hooks from the
@refinedev/mantine
package. Here's an example:
For more specific information about Mantine components and hooks in refine, you can refer to the Mantine API documentation (https://refine.dev/docs/api-reference/mantine/).
If the DatePicker component is not available in the version of Mantine used by refine, you might need to update the Mantine package or find an alternative way to implement date selection. For detailed guidance, it would be best to refer to the official Mantine and refine documentation or their respective communities.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------<@577213996344803338> kapa.ai is still learning and improving, please let us know how it did by reacting below