A simple React component that handles display of bootstrap alert.
To install, run:
npm install @deltreetech/react-bootstrap-alert
You can now import from @deltreetech/react-bootstrap-alert:
import {Alert, AlertService} from '@deltreetech/react-bootstrap-alert'
...
<Alert id="alert-container" />
AlertService.success(message, option)
Example:
AlertService.success(message, {
id: "alert-container",
})
Below is the default option:
const options = {
id: 'default-alert',
fade: true,
showClose: true,
}