• /
  • EnglishEspañol日本語한국어Português
  • 로그인지금 시작하기

PopoverTrigger

Child element of the <Popover> component.

Controls the opening/closing of the Popover overlay.

Usage

import { PopoverTrigger } from 'nr1'

Props

children

REQUIRED
node|function

This component can render in two ways, by directly passing a children React element, or by passing a render callback (function as children).When passing a React element directly, you can either use some of the compatible NR1 SDK Components like <TextField>, <Button>... or use your own Component.When using a render callback, you will receive an object of the following shape as an argument { opened: boolean, controlled: boolean }.No matter if you're passing components directly or using a render callback, when rendering your own component as trigger, it should always expose a focus method in order to work properly.

Copyright © 2024 New Relic Inc.

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