Using your own modal component
In some rare cases you might want to highly customize modal window. The easiest way is to use your own component.
NotificationButton
component can accept a react component reference renderModalComponent
with the following arguments:
open
- boolean value indicating if dialect modal is opensetOpen
- react callback to control dialect modal open statechildren
- children components that your modal component should render. You must render children.ref
- react ref callback to your component under the hood. You must pass reference.
Last updated