Popover
Show a little content from the control that opens it, in Liquid Glass on iOS 26, without taking over the screen.
Installation
Usage
uiPopoverTriggermarks the element that opens it. A tap on it opens the popover, and closes it again where the popover opens beside it. Anything can be the trigger: a glass button, a Button, or your own view.<ui-popover-content>is the popover. Put any Lynx elements in it: text, buttons, a stepper. It's a padded column; itsclasssets its width, padding and spacing.- Color text with
text-glass-foregroundandtext-glass-muted-foreground. They stay legible on glass and on Android's solid surface. - A touch anywhere else closes it, and still does what it would have. Nothing dims and nothing blocks the screen, so one tap can close the popover and press the button under your finger.
- It stays on screen and inside the safe area. Near the bottom of the screen it opens upward, and in the right half it lines up with the trigger's right edge.
[(open)]opens and closes it from code, as with Dialog.
What each platform draws
- iOS 26 grows a popover out of its source control and hides the control until it closes. The popover is one glass shape whose frame grows, so the trigger seems to open into it. A trigger that's glass itself hands its glass over, in the app
ng build --platform iosbuilds: its icon fades out as the popover grows, and back in as it closes (see Glass). - Before iOS 26, Apple's guidelines sent popovers on iPhone to a sheet. This one stays a floating panel by its trigger, as UIKit drew a popover when the app kept it one, so the same code doesn't turn into a sheet that covers the screen.
- On Android, Material 3 has no popover. Its menu surface is the container it anchors to a control for content of any kind. A rich tooltip holds only a title, a few lines of text and up to two text buttons, so it can't take the controls a popover can.
Without a trigger
Leave out uiPopoverTrigger and the popover opens from <ui-popover>'s own element, from code:
API
UiPopover
UiPopoverTrigger
Selector: [uiPopoverTrigger]. Put it on the element inside <ui-popover> that opens it. A touch on it doesn't count as one outside the popover, so tapping it again closes the popover rather than reopening it.
UiPopoverContent
Theme colors
The content's text reads glass-foreground and glass-muted-foreground. See Glass.
Accessibility
- When the popover opens, a screen reader moves into it. The rest of the screen stays reachable, as it does for touch. Activating something else there closes the popover, as a tap would.
- Name an icon-only trigger with
accessibility-label, as in the example. - Reduce Motion: the popover doesn't grow or shrink. It appears in place, and its content fades in.
- Reduce Transparency and Increase Contrast apply as on all glass.
- Android's back button closes it, as a tap outside does, before it goes back a screen or leaves the app.
Related
- Action Sheet: choices about an action, opened from its control the same way
- Menu: a list of actions that grows out of its button
- Glass: the material the popover is drawn with
- Dialogs and overlays: how overlays work and which one to use
