• /
  • Log in

Spacing

Usage

import { Spacing } from 'nr1'

Props

childrennode

Element to space. Spacing can only be applied to one signle element at a time; to space multiple ones, each of them needs to be wrapped individually.

classNamestring

Appends class names to the component.

styleobject

Inline style for custom styling.

typeenum[]

Spacing property. Spacing is defined as a tuple of zero to four values, which follow the same conventions as CSS properties like margin or padding. To omit a value, use TYPE.OMIT.

<Array of
<One of
Spacing.TYPE.EXTRA_LARGE,
Spacing.TYPE.LARGE,
Spacing.TYPE.MEDIUM,
Spacing.TYPE.NONE,
Spacing.TYPE.OMIT,
Spacing.TYPE.SMALL,
>
>

Methods

Spacing.add

function (
Base: React.ComponentType

Class or function component

) => React.ComponentType
Create issueEdit page
Copyright © 2021 New Relic Inc.