@acodez/alerts
v1.0.3
Published
react alerts
Readme
@acodez/alerts
React alerts.
Installation
npm install @acodez/alertsProps 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>