schiehll / react-alert

alerts for React
MIT License
607 stars 99 forks source link

Add a customClass Props to the main div of the component #93

Closed bastoune closed 5 years ago

bastoune commented 6 years ago

For now, the component happens a div into the body. It is impossible to access this div and customize some CSS (like & z-index).

Is it possible to add an option that will add a className to that div ?

emmya commented 6 years ago

+1

emmya commented 6 years ago

Easy fix would be to add a className to the wrapper so styles are customizable.

redheal commented 5 years ago

+1

bandaiah8 commented 5 years ago

+1

jkhaui commented 5 years ago

+1

schiehll commented 5 years ago

In v5 is now possible to pass a containerStyle option to the Provider with styles you want to be applied to the alerts container.