Components
Important account information displayed at the top of a screen
Version: | 14.18.2 •View source•Changelog•Report issue | |
---|---|---|
Install: | yarn add @thumbtack/thumbprint-react | |
Import: | import { AlertBanner } from '@thumbtack/thumbprint-react'; |
children
Text within the alert
React.ReactNode
theme
Determines the background color and text color of the component
This prop can be one of the following 3 types:
'info'
'warning'
'caution'
icon
A React component such as <MyCustomIcon />
to render as the icon.
React.ReactNode
dataTestId
A selector to hook into the React component for use in automated testing environments.
string
dataTest
A selector to hook into the React component for use in automated testing environments.
Note: Deprecated in favor of the `dataTestId` prop
string