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.
children
Text within the alert
React.ReactNode
null
theme
Defines the style of the alert
This prop can be one of the following 4 types:
'good'
'bad'
'warning'
'info'
'info'
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
children
Text within the alert
React.ReactNode
null
theme
Defines the style of the alert
This prop can be one of the following 4 types:
'good'
'bad'
'warning'
'info'
'info'
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