Components
Alert
Alert are to display a list of options on a temporary surface
Component Status Details
Status component contains a list of checks and completeness that has been tested and owned by each component
The Alert component is utilized to present a temporary surface that provides a list of options. It displays a brief message or notification to the user within an existing activity.

Usage
import { Alert } from "@legion-crossplatform/ui";const Alert = () => {return (<Alerttitle="This is Alert"desc="Lorem ipsum dolor, sit amet consecteturadipisicing elit. Iure asperiores suntrepellat dolores quibusdam."
Variants

There are 4 variants available: Success
, Info
, Warning
, Error
. Following are example on how to use each variants:
Success
<Alerttitle="This is a Success Alert"desc="Lorem ipsum dolor, sit amet consecteturadipisicing elit. Iure asperiores suntrepellat dolores quibusdam."actionText="Call to Action"variant="success"/>
Info
<Alerttitle="This is an Info Alert"desc="Lorem ipsum dolor, sit amet consecteturadipisicing elit. Iure asperiores suntrepellat dolores quibusdam."actionText="Call to Action"variant="info"/>
Warning
<Alerttitle="This is a Warning Alert"desc="Lorem ipsum dolor, sit amet consecteturadipisicing elit. Iure asperiores suntrepellat dolores quibusdam."actionText="Call to Action"variant="warning"/>
Error
<Alerttitle="This is an Error Alert"desc="Lorem ipsum dolor, sit amet consecteturadipisicing elit. Iure asperiores suntrepellat dolores quibusdam."actionText="Call to Action"variant="error"/>
Props
Parameter | Type | Description |
---|---|---|
actionText | String | Set text for action button in alert |
children | React.ReactNode | Set the children of Alert |
closable | Boolean | To make alert closable |
desc | String | Set the description of Alert |
title | String | Set the title of Alert |
variant | success | info | warning | error | Set the variant of Alert |
width | Number | Set the width of Alert |