teodosii / react-notifications-component

Delightful and highly customisable React Component to notify your users
https://teodosii.github.io/react-notifications-component/
MIT License
1.27k stars 73 forks source link

Pass classname and id to notification component #30

Closed sradevski closed 5 years ago

sradevski commented 5 years ago

This is useful when you want to override the styling of the notification containers using something like styled-components without relying on .css files. For example, if you pass the className, you can do the following:

const StyledContainer = styled(ReactNotification)`
    .react-notification-root .notification-item {
        box-shadow: none;
    }
`

but styled-components rely on the component passing the classname to the underlying tag.

teodosii commented 5 years ago

Commented in the PR, closing the issue