Tag
Tag for categorizing or markup.
When To Use#
It can be used to tag by dimension or property.
When categorizing.
import { NzTagModule } from 'ng-zorro-antd/tag';
Examples
Loading...
Loading...
Loading...
Loading...
Presets:
Custom:
Loading...
Loading...
Loading...
Without icon
With icon
Loading...
API#
nz-tag#
Property | Description | Type | Default |
---|---|---|---|
[nzMode] | Mode of tag | 'closeable' | 'default' | 'checkable' | 'default' |
[nzChecked] | Checked status of Tag, double binding, only works when nzMode="checkable" | boolean | false |
[nzColor] | Color of the Tag | string | - |
[nzBordered] | Whether has border style | boolean | true |
(nzOnClose) | Callback executed when tag is closed, only works when nzMode="closable" | EventEmitter<MouseEvent> | - |
(nzCheckedChange) | Checked status change call back, only works when nzMode="checkable" | EventEmitter<boolean> | - |