NG Kit

Sizes & appearances

Every combination of field density and Material appearance. size switches between the default medium and a denser small field, appearance chooses the fill or outline form-field style, and fullWidth stretches the field to fill its container.

Usage

Import AutocompleteComponent and configure it with the inputs below. The full runnable source is on the Examples tab.

html
<autocomplete [options]="films" [(value)]="value" size="small" appearance="fill" label="Movie" />
<autocomplete [options]="films" [(value)]="value" size="medium" appearance="outline" label="Movie" />
<autocomplete [options]="films" [(value)]="value" [fullWidth]="true" appearance="outline" label="Movie" />

API

This example demonstrates the inputs below. See the Autocomplete introduction for the complete API — every input, output, content template and filter helper.

Inputs

NameTypeDefaultDescription
size'small' | 'medium''medium'Field density.
appearance'fill' | 'outline''fill'Material form-field appearance.
fullWidthbooleanfalseStretch the field to fill its container.