• /
  • Log in

TabsItem

Child element of the <Tabs> component.

It creates a tab where the title of the tab is defined by the label prop and the content of the tab is defined by the children prop.

Usage

import { TabsItem } from 'nr1'

Props

childrenrequirednode

Content to show when the tab is selected.

classNamestring

Appends class names to the component.

Should be used only for positioning and spacing purposes.

disabledboolean
DEFAULT
false

If true, the tab is not available for interaction.

labelrequiredstring

Title of the tab.

styleobject

Inline style for custom styling.

It is applied to the tab content.

testIdstring

Adds a data-test-id.

Used to target the component in unit and e2e testing.

valuerequiredany

Unique identifier of the tab.

It is used when selecting the active tab.

Methods

TabsItem.render

function () => undefined
Create issueEdit page
Copyright © 2021 New Relic Inc.