How to get spaceHorizontal

import { spaceHorizontal } from 'fds/system';

Type: Function

A styling mixin used for setting a horizontal spacing between the child elements.


# Name Type Description
1. spaceSize Number | String

The amount of horizontal space (or margin) between the children of the component.

This should be one of the following values:

  • 0 (zero, no margin at all)

  • 's' (small)

  • 'm' (medium)

  • 'l' (large)


Type: String

A style rule resulting in a generated class name on the element.

Generally created using fds/system/applyCss and/or any styling utility provided by FDS.

Was this page helpful?