API#
[nz-button]#
Note:nz-button is Directive, it accepts all props which native button support.
To get a customized button, just set nzType
/nzShape
/nzSize
/nzLoading
/disabled
.
Property | Description | Type | Default | Global Config |
---|---|---|---|---|
[nzGhost] |
make background transparent and invert text and border colors | boolean |
false |
|
[nzLoading] |
set the loading status of button | boolean |
false |
|
[nzShape] |
can be set to circle round or omitted |
'circle'|'round' |
- | |
[nzSize] |
can be set to small large or omitted |
'large'|'small'|'default' |
'default' |
✅ |
[nzType] |
can be set to primary dashed danger or omitted (meaning default ) |
'primary'|'dashed'|'danger'|'default'|'link' |
'default' |
|
[nzBlock] |
option to fit button width to its parent width | boolean |
false |
近期评论