We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bcb28e3 commit 4f14966Copy full SHA for 4f14966
README.md
@@ -57,8 +57,24 @@ class DemoComponent extends React.Component {
57
render() {
58
const {notifications} = this.props;
59
60
+ //Optional styling
61
+ const style = {
62
+ NotificationItem: { // Override the notification item
63
+ DefaultStyle: { // Applied to every notification, regardless of the notification level
64
+ margin: '10px 5px 2px 1px'
65
+ },
66
+
67
+ success: { // Applied only to the success notification item
68
+ color: 'red'
69
+ }
70
71
+ };
72
73
return (
- <Notifications notifications={notifications} />
74
+ <Notifications
75
+ notifications={notifications}
76
+ style={style}
77
+ />
78
);
79
}
80
0 commit comments