• Log in

PopoverTrigger

Usage

import { PopoverTrigger } from 'nr1'

Props

childrenrequirednode|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 © 2022 New Relic Inc.

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