Files
bbq/src/app/shared/components/status-label/index.en-US.md
2021-11-26 16:34:35 +08:00

24 lines
766 B
Markdown

---
order: 10
title: status-label
type: Component
---
Status label, [DEMO](https://preview.ng-alain.com/ms/#/dns/domain)。
## DEMO
```html
<status-label>Normal</status-label>
<status-label type="error" text="Error"></status-label>
<span status-label type="error" text="Error"></span>
```
## API
| Property | Description | Type | Default |
| -------- | --------------------------------------- | ----------------------- | --------- |
| `[type]` | Type of status label | `success,error,warning` | `success` |
| `[icon]` | Whether show icon | `boolean` | `true` |
| `[text]` | Text of status label, or `[ng-content]` | `string` | - |