Alert
Component for displaying messages, notifications, or other application state.
import { Alert } from 'cherag-ui'
Usage
Example 1
   <Alert
      alert={alert}
      setAlert={setAlert}
      status="warning"
      title="Product add successfully"
    />
Example 2
   <Alert
      alert={alert}
      setAlert={setAlert}
      status="success"
      title="Product add successfully"
    />
Example 3
    <Alert
      alert={alert}
      setAlert={setAlert}
      status="error"
      title="Product add successfully"
    />
Example 4
    <Alert
      alert={alert}
      setAlert={setAlert}
      status="info"
      title="Product add successfully"
    />
󱇏
Product add successfully
󰅖
󰄴
Product add successfully
󰅖
󱃋
Product add successfully
󰅖
󰗖
Product add successfully
󰅖
Props
Alert
Name
Type
Description
title
string
Title of the alert.
status
success | error | warning | info
The status of the alert
alert
boolean
Change state value
setAlert
(values: boolean) => boolean;
setAlert update current alert state