Cogoport / cogo-toast

Beautiful, Zero Configuration, Toast Messages for React. Only ~ 4kb gzip, with styles and icons
https://cogoport.github.io/cogo-toast
MIT License
673 stars 1 forks source link

Container selector option #27

Closed vkalchuk closed 4 years ago

vkalchuk commented 5 years ago

Hi, thank you for creating this library.

I have the case when I'd like to render the toast message and position it relative to the element within the iframe, so adding ct-container id won't work as document.getElementById('ct-container') is executed in the main window.

This change allows passing an option of a container css selector.