<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/open-ui-and-the-popover-api-hqqcjp8w3" -->

---
title: Open UI and the Popover API | daily.dev
description: An introduction to the Open UI W3C community group and the experimental Popover API, which lets developers build tooltips, alerts, and panels natively in...
canonical: https://daily.dev/posts/open-ui-and-the-popover-api-hqqcjp8w3
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Open UI and the Popover API | daily.dev
og:description: An introduction to the Open UI W3C community group and the experimental Popover API, which lets developers build tooltips, alerts, and panels natively in...
og:url: https://daily.dev/posts/open-ui-and-the-popover-api-hqqcjp8w3
og:image: https://api.daily.dev/og/posts/hQQcjp8W3.png
og:image:alt: Open UI and the Popover API
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Open UI and the Popover API

**[utilitybend](https://daily.dev/sources/utilitybend)** · 10 min read · 0 upvotes · 0 comments

## Summary

An introduction to the Open UI W3C community group and the experimental Popover API, which lets developers build tooltips, alerts, and panels natively in HTML/CSS without JavaScript. Covers the popover attribute, popovertarget/popovertargetaction attributes, the top-layer, focus trapping caveats, animating popovers via css-transitions-2 spec issues, and anchoring popovers to elements using the new CSS Anchoring API. Available at the time only behind an experimental flag in Chrome Canary.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://utilitybend.com/blog/open-ui-and-the-popover-api>

## Questions this post answers

### How do I create a popover in HTML without using JavaScript?

Add the popover attribute to an element, such as a div, which hides it in the browser's top-layer by default. To toggle it, add a button with popovertarget referencing the popover's id and popovertargetaction set to show, hide, or toggle (toggle is the default). The popover attribute accepts auto (light-dismissible via outside click or ESC) or manual (requires explicit close action).

_daily.dev surfaces web platform updates like this for developers moving UI logic out of javascript._

### What is the difference between popover=auto and popover=manual in the Popover API?

Popover=auto is the default and supports light dismiss, meaning it closes when clicking outside it or pressing ESC. Popover=manual cannot be light dismissed and requires a custom action, such as a dedicated close button, making it suitable when users must complete a specific action before the popup closes.

_developers weighing dialog patterns can track native API nuances like this via daily.dev._

### How can I anchor a popover to another element using CSS instead of JavaScript positioning logic?

Use the CSS Anchoring API by giving the target element an anchor-name custom property, then reference that name in the popover's positioning with the anchor() function, for example top: anchor(--myCoolAnchor top). This tethers elements like tooltips to their trigger buttons without manual z-index or JavaScript-based position calculations.

_daily.dev helps developers keep up with emerging CSS positioning techniques like anchoring._

## Similar posts on daily.dev

- [The Popover API](https://daily.dev/posts/the-popover-api-mfkqsl9va) · Flavio Copes · 1 upvotes · 0 comments
- [Getting Started With The Popover API — Smashing Magazine](https://daily.dev/posts/getting-started-with-the-popover-api-smashing-magazine-vjbltzl0j) · Smashing Magazine · 47 upvotes · 1 comments
- [Link \+ Popover Navigation](https://daily.dev/posts/link-popover-navigation-ojnhasllg) · Adrian Roselli · 0 upvotes · 0 comments

---

Tags: [#css](https://daily.dev/tags/css), [#html](https://daily.dev/tags/html), [#accessibility](https://daily.dev/tags/accessibility)

[View this post on daily.dev](https://daily.dev/posts/open-ui-and-the-popover-api-hqqcjp8w3)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Open UI and the Popover API","url":"https://daily.dev/posts/open-ui-and-the-popover-api-hqqcjp8w3","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/open-ui-and-the-popover-api-hqqcjp8w3"},"datePublished":"2026-09-20T07:43:36.834Z","dateModified":"2026-09-20T07:46:54.688Z","description":"An introduction to the Open UI W3C community group and the experimental Popover API, which lets developers build tooltips, alerts, and panels natively in...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/cc910b5f37e52fee011a23e7b8062966?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/cc910b5f37e52fee011a23e7b8062966?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"utilitybend","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"utilitybend","logo":"https://media.daily.dev/image/upload/s--hONVFSz4--/f_auto,q_auto/v1789890196/logos/utilitybend?_a=BAMAMicg0","url":"https://daily.dev/sources/utilitybend"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/open-ui-and-the-popover-api-hqqcjp8w3","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"css,html,accessibility","timeRequired":"PT10M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"utilitybend","item":"https://daily.dev/sources/utilitybend"},{"@type":"ListItem","position":3,"name":"Open UI and the Popover API"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/open-ui-and-the-popover-api-hqqcjp8w3#faq","mainEntity":[{"@type":"Question","name":"How do I create a popover in HTML without using JavaScript?","acceptedAnswer":{"@type":"Answer","text":"Add the popover attribute to an element, such as a div, which hides it in the browser's top-layer by default. To toggle it, add a button with popovertarget referencing the popover's id and popovertargetaction set to show, hide, or toggle (toggle is the default). The popover attribute accepts auto (light-dismissible via outside click or ESC) or manual (requires explicit close action). daily.dev surfaces web platform updates like this for developers moving UI logic out of javascript."}},{"@type":"Question","name":"What is the difference between popover=auto and popover=manual in the Popover API?","acceptedAnswer":{"@type":"Answer","text":"Popover=auto is the default and supports light dismiss, meaning it closes when clicking outside it or pressing ESC. Popover=manual cannot be light dismissed and requires a custom action, such as a dedicated close button, making it suitable when users must complete a specific action before the popup closes. developers weighing dialog patterns can track native API nuances like this via daily.dev."}},{"@type":"Question","name":"How can I anchor a popover to another element using CSS instead of JavaScript positioning logic?","acceptedAnswer":{"@type":"Answer","text":"Use the CSS Anchoring API by giving the target element an anchor-name custom property, then reference that name in the popover's positioning with the anchor() function, for example top: anchor(--myCoolAnchor top). This tethers elements like tooltips to their trigger buttons without manual z-index or JavaScript-based position calculations. daily.dev helps developers keep up with emerging CSS positioning techniques like anchoring."}}]}
```

