• /
  • Log in
  • Start now

PopoverBody

Child element of the <Popover> component.

Contains the content of the Popover overlay.

Usage

import { PopoverBody } from 'nr1'

Props

childrenrequirednode

Content to render when Popover opens.

classNamestring

Appends class names to the component.

Should be used only for positioning and spacing purposes.

onClosefunction

Callback fired any time the overlay is closed.

function (
event: Event
) => undefined
onOpenfunction

Callback fired any time the overlay is opened.

function (
event: Event
) => undefined
onTogglefunction

Callback fired any time the overlay is toggled.

function (
event: Event,
opened: boolean
) => undefined
placementTypeenum
DEFAULT
PopoverBody.PLACEMENT_TYPE.BOTTOM_START

Specifies the placement of the popover body relative to the popover trigger. Default display is on the bottom start, but you can also choose to display it from the bottom end.

<One of
PopoverBody.PLACEMENT_TYPE.BOTTOM_END,
PopoverBody.PLACEMENT_TYPE.BOTTOM_START,
>
styleobject

Inline style for custom styling.

Should be used only for positioning and spacing purposes.

Methods

PopoverBody.render

function () => undefined
Edit this pageCreate an issue
Copyright © 2021 New Relic Inc.

This site uses cookies 🍪

We use cookies and other similar technologies ("Cookies") on our websites and services to enhance your experience and to provide you with relevant content. By using our websites and services you are agreeing to the use of cookies. You can read more here. If you consent to our cookies, please click Yes.