@acodez/alerts 中文文档教程
@acodez/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>
@acodez/alerts
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>