@acodez/alerts

react alerts

Usage no npm install needed!

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

README

@acodez/alerts

npm_version license

React alerts.



Installation

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

Usage

import Alerts from "@acodez/alerts";

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