```js import FlashMessage from '@invisionag/iris-react-flash-message'; ```
npm install @invisionag/iris-react-flash-message``js`
import FlashMessage from '@invisionag/iris-react-flash-message';
A general single flash message.
`
type Props = {
text: string,
type: 'success' | 'error',
onDismiss: string => any,
};
`
prop, the flash message will automatically invoke the passed onDismiss callback after an amount of ms specified in iris settings. The lifespan timer will pause when the Flash Message receives a mouseover event and start up again on mouseleave.``If
autoDismiss` is not passed, the message will stay on screen indefinitely.