The Flash component informs users of successful or pending actions.
Examples
Default
<>
<Flash>Default Flash</Flash>
<Flashvariant="success">Success Flash</Flash>
<Flashvariant="warning">Warning Flash</Flash>
<Flashvariant="danger">Danger Flash</Flash>
</>
With an icon
Flash components with icons inside of them will automatically set the correct color for the icon depending on the type of Flash, as well as applying the correct right margin.
The underlying element to render — either a HTML element name or a React component.
ref
React.RefObject<HTMLDivElement>
A ref to the element rendered by this component. Because this component is polymorphic, the type will vary based on the value of the as prop.
Additional props are passed to the <div> element. See MDN for a list of props accepted by the <div> element. If an as prop is specified, the accepted props will change accordingly.