Skip to main content

Alert

Import

import { Alert } from '@sparrowengg/twigs-react';

Usage

Result
Loading...
<Alert status='info'> Password should have a minimum length of 6. </Alert>

Props

PropertyDescriptionTypeDefault
statuscolor of the alertsuccess error warning infoinfo
sizesm mdsm
closableshow a close button on alertbooleanfalse
onClosecallback function to be called on clicking the close button
iconChange the default alert iconJSX Element