1.0.3 • Published 5 years ago
@acodez/alerts v1.0.3
@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>