Space
Set components spacing.
When To Use#
Avoid components clinging together and set a unified space.
import { NzSpaceModule } from 'ng-zorro-antd/space';
Examples
API#
nz-space#
Property | Description | Type | Default | Global Config |
---|---|---|---|---|
[nzSize] | The space size | 'small' | 'middle' | 'large' | number | small | ✅ |
[nzDirection] | The space direction | 'vertical' | 'horizontal' | horizontal | |
[nzAlign] | Align items | 'start' | 'end' | 'baseline' | 'center' | - | |
[nzWrap] | Auto wrap line, when horizontal effective | boolean | false | |
[nzSplit] | Set split | TemplateRef | - |