• /
  • Log in

Spinner

Spinners are used to indicate to your users that content is loading on the screen.

Usage

import { Spinner } from 'nr1'

Examples

Props

classNamestring

Appends class names to the component.

Should be used only for positioning and spacing purposes.

inlineboolean
DEFAULT
false

If true, the spinner will be displayed inline.

spacingTypeenum[]

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 SPACING_TYPE.OMIT.

<Array of
<One of
Spinner.SPACING_TYPE.EXTRA_LARGE,
Spinner.SPACING_TYPE.LARGE,
Spinner.SPACING_TYPE.MEDIUM,
Spinner.SPACING_TYPE.NONE,
Spinner.SPACING_TYPE.OMIT,
Spinner.SPACING_TYPE.SMALL,
>
>
styleobject

Inline style for custom styling.

Should be used only for positioning and spacing purposes.

testIdstring

Adds a data-test-id attribute.

Use it to target the component in unit and e2e tests.

typeenum
DEFAULT
Spinner.TYPE.CIRCLE

Type of loading animation.

<One of
Spinner.TYPE.CIRCLE,
Spinner.TYPE.DOT,
>
Create issueEdit page
Copyright © 2021 New Relic Inc.