Import
import { Alert } from '@windmill/react-ui'
Type
There are five types of alerts, applied by the prop type
: success
, danger
, warning
, info
and neutral
(default).
Every alert comes with an icon that helps identifying the type of alert for colorblind people.
Lorem ipsum dolor sit
Lorem ipsum dolor sit
Lorem ipsum dolor sit
Lorem ipsum dolor sit
Lorem ipsum dolor sit
Lorem ipsum dolor sit
live editor
onClose
The onClose
prop is responsible for showing the close button and executing the passed function.
Lorem ipsum
live editor
Props overview
Prop | Description | Type | Default |
---|---|---|---|
type | define the size of component | success , danger , warning , info , neutral | neutral |
onClose | if present, shows a close button and executes a function | function |
Customizing
See Customization to learn how to change defaultTheme
styles.