Skip to main content

Flash

Use the Flash component for delivering important messages to your users while allowing them to continue interacting with the rest of the page. For example, you may want to let users know they're on the wrong network but allow them to continue browsing until they try to connect. The Flash renders a responsive box-model layout component. Inherits props from Box component.

Usage example

Live Editor
Result
Loading...

Accessibility

Critical and warning banners have a role="alert" All other banners have a role="status" Banner containers have a tabindex="0" and display a visible keyboard focus indicator. Banners use aria-describedby to describe their purpose to assistive technologies when they're announced or receive focus. All of the banner content is used for the aria-describedby.

Props

PropTypeDefaultDescription
borderstring (optional)'1'
borderRadiusinteger (optional)1
pstring (optional)'3'
variantenum (optional)'base'Sets the colors of the background, text and links. Allowed values: 'base' 'success' 'warning' 'danger' 'info'.
widthstring (optional)'100%'Sets width.

Flash uses COMMON, LAYOUT, POSITION, FLEXBOX, BORDERS groups of Styled System props.