Create notification component in blocks
Closed this issue · 0 comments
rohitmalhotra1420 commented
- Create a new notification component in the blocks design system.
- Figma design: https://www.figma.com/design/FvJL0JWHlsVohsHTERB1Lh/Push-Design-Foundations?node-id=3682-30737&t=8Tt3jug3sMhaXUVV-0
- The notification component should support bottom left and bottom right positions.
- We can use https://www.radix-ui.com/primitives/docs/components/toast internally for this notification component.
- We should be able to use notification like this
notification.show({...config})
andnotification.hide()
something similar what we can do with AlertModal right now. - It should have a props like icon/image, title, description, onClose and onClick.
NOTE:
- On out platform Toast is supposed to be for success, error, info and warning for user interactions.
- Notification component is for platform specific updates, so don't get confused in that.
- Internally both will use the toast component and same tech but their usage is different.
- Toast doesn't exist in design system for now but will add it afterwards.