Notification component to receive custom type and icon [feature request]
See original GitHub issueNow Notification
component is restricted by a few types: critical
, warning
, normal
, unknown
. It’s a great design for a purpose. At the same time, the component isn’t customizable as it might be.
Expected Behavior
It would be reasonable to add the custom
type. For this case, the component could use a brand new customIcon
prop to render any icon for a specific situation.
Actual Behavior
There is no custom
type and a property for a custom icon
Issue Analytics
- State:
- Created a year ago
- Comments:11 (4 by maintainers)
Top Results From Across the Web
Adding custom icon to notification · Issue #3699 - GitHub
The icon provided to the component should be properly displayed. If no icon is provided, the default functionality and layout should not change....
Read more >Create a Custom Notification Layout | Android Developers
DecoratedCustomViewStyle to your notification. This API allows you to provide a custom layout for the content area normally occupied by the ...
Read more >Notifications - System experiences - Human Interface Guidelines
A notification can present a customizable detail view that contains up to four buttons people use to perform actions without opening your app....
Read more >react-notifications-component - npm
Features. Touch support; Responsive notifications; Standard notification types; Custom notification types; Custom notification content ...
Read more >How to create a custom toast component with React
The button will be used to close a particular toast notification. An image icon will display depending on the type of toast.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for providing use cases! Sounds like we should add
icon
prop to Notification. If theicon
prop is set it will override thenotification.[status].icon
set in the theme. If noicon
prop is passed we will continue to use the icon defined innotification.[status].icon
.Closing since #6389 has been merged