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'; | |
childrenText within the alert
React.ReactNodethemeDetermines the background color and text color of the component
This prop can be one of the following 3 types:
'info''warning''caution'iconA React component such as <MyCustomIcon /> to render as the icon.
React.ReactNodedataTestIdA selector to hook into the React component for use in automated testing environments.
stringdataTestA selector to hook into the React component for use in automated testing environments.
Note: Deprecated in favor of the `dataTestId` prop
string