spaceHorizontal

Type: Function

How to get spaceHorizontal?

JavaScript

import { spaceHorizontal } from 'fds/system';

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

Arguments

  1. spaceSize

    (Required)

    Type: 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)

Returns

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.