Input

API#

[nz-input]#

All props of input supported by w3c standards and Angular can used in nz-input.

Property Description Type Default
[nzSize] The size of the input box. Note: in the context of a form, the large size is used. 'large' | 'small' | 'default' 'default'
[nzAutosize] Only used for textarea, height autosize feature, can be set to boolean or an object { minRows: 2, maxRows: 6 } boolean | { minRows: number, maxRows: number } false

nz-input-group#

Property Description Type Default
[nzAddOnAfter] The label text displayed after (on the right side of) the input field, can work with nzAddOnBefore string | TemplateRef<void> -
[nzAddOnBefore] The label text displayed before (on the left side of) the input field, can work with nzAddOnAfter string | TemplateRef<void> -
[nzPrefix] The prefix icon for the Input, can work with nzSuffix string | TemplateRef<void> -
[nzSuffix] The suffix icon for the Input, can work with nzPrefix string | TemplateRef<void> -
[nzCompact] Whether use compact style boolean false
[nzSize] The size of nz-input-group specifies the size of the included nz-input fields 'large' | 'small' | 'default' 'default'