• Log inStart now

GridItem

Usage

import { GridItem } from 'nr1'

Props

childrenrequirednode

Content to render inside the grid item.

classNamestring

Appends class names to the component.

Should be used only for positioning and spacing purposes.

collapseGapAfterboolean
DEFAULT
false

If true, the grid item will fill the following column gap set by the grid.

collapseGapBeforeboolean
DEFAULT
false

If true, the grid item will fill the preceding column gap set by the grid.

columnEndnumber

Determines the grid item's end column within the grid.

Possible values: integer between 1 and 12.

columnSpannumber

Determines across how many columns the grid item should span, starting from the provided columnStart. This prop should be used as an alternative to columnEnd. If both of them are provided, only the columnEnd will be considered.

Possible values: integer between 1 and 12.

columnStartnumber

Determines the grid item's start column within the grid.

Possible values: integer between 1 and 12.

styleobject

Inline style for custom styling.

testIdstring

Adds a data-test-id attribute. Use it to target the component in unit and E2E tests.

For a test id to be valid, prefix it with your nerdpack id, followed up by a dot.

For example, my-nerdpack.some-element.

Note: You might not see data-test-id attributes as they are removed from the DOM, to debug them pass a e2e-test query parameter to the URL.

Copyright © 2024 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.