R
Refine
U
Refine
•
4y ago
unique-blue
Toast notification recommendation?
Hey Guys
, would anyone like to recommend their favorite toast notification to use with Refine
?
Refine
Join
6,201
Members
View on Discord
Was this page helpful?
Yes
No
O
Omer
•
10/31/22, 5:12 AM
Hi
@ben
_g
.
,
Which UI framework are you using
?
U
unique-blue
OP
•
10/31/22, 5:18 AM
hey
@Omer ant d
U
unique-blue
OP
•
10/31/22, 5:18 AM
i was thinking to just use theirs
U
unique-blue
OP
•
10/31/22, 5:18 AM
but wondered if there were ay other recommendations
?
O
Omer
•
10/31/22, 5:19 AM
Maybe you can use Message notifications
?
https://ant.design/components/message/
Message - Ant Design
U
unique-blue
OP
•
10/31/22, 5:23 AM
I think im going to thanks
@Omer
i tried using
https://react-hot-toast.com/
but didnt work out that well
.
react-hot-toast - The Best React Notifications in Town - react-hot-...
Add beautiful notifications to your React app with react
-hot
-toast
. Lightweight
. Smoking hot by default
.
U
unique-blue
OP
•
10/31/22, 7:09 AM
Hey
@Omer in your example here
https://github.com/refinedev/refine/blob/next/examples/reactToastify/src/App.tsx
you add the
<toastcontainer
/
> to the layout with the cgildren prop
.
im using the Layout props from ant d
what is the best way to add something like a
<toastContainer
> to the layout
GitHub
refine/App.tsx at next · refinedev/refine
Build your React
-based CRUD applications
, without constraints
.
- refine
/App
.tsx at next
· refinedev
/refine
O
Omer
•
10/31/22, 8:21 AM
hmm you can use
offLayoutArea
offLayoutArea
property of
<Refine
> component
https://refine.dev/docs/api-reference/core/components/refine-config/#offlayoutarea
| refine
`
` component is the entry point of a refine app
. It is where the highest level of configuration of the app occurs
.
U
unique-blue
OP
•
10/31/22, 9:45 AM
Awesome
!
@Omer I
'll give that a try
. Thanks
U
unique-blue
OP
•
10/31/22, 9:48 AM
Yep
, thats the ticket
. Worked perfectly
. Thanks again
@Omer
offLayoutArea
offLayoutArea