Follow

TIL about the "popover API" in

With this you can have fully declarative modals with zero js.

```
<button popovertarget="mypopover" popovertargetaction="show">
Show popover
</button>
<button popovertarget="mypopover" popovertargetaction="hide">
Hide popover
</button>
<div id="mypopover" popover>Popover content</div>
```

developer.mozilla.org/en-US/do

· · Web · 0 · 0 · 2
Sign in to participate in the conversation
Mauvestodon

Escape ship from centralized social media run by Mauve.