Twigs Logo

Alert

A simple popup message to convey any important information to the users.

Import

import { Alert, AlertDescription } from "@sparrowengg/twigs-react";

Usage

<Alert status="info">
  <AlertDescription>
    Password should have a minimum length of 6.
  </AlertDescription>
</Alert>

Examples

Different status with variable sizes

Props

Alert

PropTypeDefault
status?
'success' 'error' 'warning' 'info'
info
size?
'sm' 'md'
sm
closable?
boolean
false
icon?
JSX Element
-
css?
object
-