Skip to content

Commit 4f14966

Browse files
committed
Readme -> container style example
1 parent bcb28e3 commit 4f14966

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,24 @@ class DemoComponent extends React.Component {
5757
render() {
5858
const {notifications} = this.props;
5959
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+
6073
return (
61-
<Notifications notifications={notifications} />
74+
<Notifications
75+
notifications={notifications}
76+
style={style}
77+
/>
6278
);
6379
}
6480
}

0 commit comments

Comments
 (0)