• /
  • Log in

UserTableRowCell

Renders a row table cell showing a particular user. This cell takes the user object as its children, which is in turn compatible with the NerdGraph user object (needing, at the very least, the name and gravatar fields).

Usage

import { UserTableRowCell } from 'nr1'

Examples

Props

classNamestring

Appends class names to the component.

Should be used only for positioning and spacing purposes.

onClickfunction

Callback fired any time the user clicks on the table cell.

function (
event: React.MouseEvent
)
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.

toshape|string

Location object or url string to link to.

Linked TableRowCells are unstyled and will not show icons for external links. If the same styling as the Link component is what is desired, then use a Link instead as a child component within the cell.

shape

pathnamerequiredstring
searchstring
hashstring
valuerequiredshape

User object, that requires (at least), the name and gravatar fields. This object matches with the user structure obtained from NerdGraph.

shape

namerequiredstring
gravatarrequiredstring
Create issueEdit page
Copyright © 2021 New Relic Inc.