Open Popover
Open Popover
Open Popover

Is it possible to use the html `popover` attribute in a react element

32 Views Asked by At

I am searching if the popover API is available in react and it seeems not to be.

<button popovertarget="my-popover">Open Popover</button>

<div popover id="my-popover">Greetings, one and all!</div>

i've searched online and haven't found any resources on how to do this using jsx alone

1

There are 1 best solutions below

0
Ali Asad On

React itself doesn't have a built-in popover component in its core API. However, there are several third-party libraries and components available in the React ecosystem that offer popover functionality.