marginHorizontal

How to get marginHorizontal

import { marginHorizontal } from 'fds/system';

Type: Function

A styling mixin used for setting a margin on the left and right of the element in the specified size.

Arguments

# Name Type Description
1. marginSize Number | String

The amount of margin-right and margin-left rendered by the component.

The amount of margin rendered by the component.

This should be a either, A single size value, one of the following values:

  • 0 (zero, no margin at all)

  • 's' (small)

  • 'sm'(between small and medium)

  • 'm' (medium)

  • 'l' (large) to set the marginSize for the top, right, bottom and left side to a single shared value.

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.

Was this page helpful?