react alerts

Usage no npm install needed!

<script type="module">
  import acodezAlerts from 'https://cdn.skypack.dev/@acodez/alerts';



npm_version license

React alerts.


npm install @acodez/alerts

Props API

Property Type Required Default value Description
theme string no none color scheme of the alerts, choose from primary, info, error, warning, success
showCloseBtn string no none to show close button for alert box
title string no none Heading for alert box


import Alerts from "@acodez/alerts";

<Alerts showCloseBtn title="Hello there!">
    This is just a simple alerts component for react.