Components
Vibrant alert messages used as page banners or within forms.
| Version: | 14.18.2 •View source•Changelog•Report issue | |
|---|---|---|
| Install: | yarn add @thumbtack/thumbprint-react | |
| Import: | import { BannerAlert, InPageAlert } from '@thumbtack/thumbprint-react'; | |
Deprecated
This component is deprecated. Use AlertBanner instead.
These alerts should be used at the very top of a page.
These alerts should be used inside other page elements, e.g. forms.
Your credit card is about to expire. To keep quoting on job requests please update your credit card now.
Your credit card is about to expire. To keep quoting on job requests please update your credit card now.
Your credit card is about to expire. To keep quoting on job requests please update your credit card now.
Your credit card is about to expire. To keep quoting on job requests please update your credit card now.
childrenText within the alert
React.ReactNodenullthemeDefines the style of the alert
This prop can be one of the following 4 types:
'good''bad''warning''info''info'dataTestIdA 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
stringchildrenText within the alert
React.ReactNodenullthemeDefines the style of the alert
This prop can be one of the following 4 types:
'good''bad''warning''info''info'dataTestIdA 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