Popover unstable
A popup anchored to a trigger, for content the user asks for and can act on, such as a filter form, a profile card or a list of notifications.
Popover is headless: it is a non-modal Dialog placed next to its trigger by
Positioning. It owns the ids, the ARIA, the data attributes, focus,
dismissal and the popup's position, and the consumer draws the markup. The
consumer owns whether the popover is open, passes it as open, and stores
what the RequestedOpen and RequestedClose events ask for. The popover
stays as it is until open changes, so a consumer can refuse a close.
Anatomy
| Part | Element |
|---|---|
trigger |
<button> that opens the popover |
portal |
<div> in the top layer, around the parts below |
backdrop |
<div> that covers the page |
positioner |
<div> placed next to the trigger |
popup |
<div> with the dialog role and the popover's content |
viewport |
<div> around content that changes with the trigger |
arrow |
<div> that points at the trigger |
title |
a heading, <h1> to <h6>, that labels the popover |
description |
<p> that describes the popover |
close |
<button> that closes the popover |
initialFocus |
any element, focused when the popover opens |
finalFocus |
any element, focused when the popover closes |
Each part takes the consumer's builder and returns it with the part
applied, and the consumer adds the children:
popover.portal(h.div)?.children(popover.positioner(h.div).children(popover.popup(h.div).children("Saved"))).
The trigger takes an options object, popover.trigger({ element: h.button }),
since each trigger has its own hover options. The portal returns undefined
while the popover is closed, unless keepMounted. backdrop, viewport
and arrow are optional.
The portal is a <div> shown as a manual popover, so the popup sits in
the top layer and needs no portal to another place in the document. The kit
resets its box inline to an empty one with nothing visible of its own, at
the document's origin, or at the viewport's corner with
positionMethod: "fixed". The positioner is placed inside it, so style the
popup and the arrow, and a backdrop as a fixed layer:
.backdrop { position: fixed; inset: 0 }.
In place
With topLayer: false, the portal renders in place as a <div>, hidden
while closed, with no box of its own, and the popup is placed and clipped
inside the positioner's containing block, as Positioning describes.
Dialog's In place describes the rest.
The positioner's inline style carries left and top, and the variables
--anchor-width, --anchor-height, --available-width,
--available-height and --transform-origin. sideOffset is padding on
the positioner's side facing the trigger, so the pointer can cross the gap
without leaving a popover opened by hover.
Data attributes
Each present with an empty value or absent, except the ones with a value:
trigger:data-popup-open,data-pressedwhile the popover is open for it by a press,data-disabledbackdrop:data-open/data-closed,data-starting-style,data-ending-stylepositioner:data-open/data-closed,data-side,data-align,data-anchor-hidden,data-instantpopup: the backdrop's, anddata-side,data-align,data-instantviewport:data-transitioning,data-activation-direction,data-instantarrow:data-open/data-closed,data-side,data-align,data-uncentered
data-side and data-align name where the popup ended up, after it flipped
or shifted to fit. data-instant names a change that should skip its
transition: click for a trigger pressed with the keyboard, dismiss for
Escape, focus for focus leaving, and trigger-change once the popup has
moved to another trigger, until it closes. data-starting-style is present
for the first frame after the popover opens and data-ending-style while it
closes. The popover stays shown until the popup's own transitions and
animations finish, then closes and emits Settled.
Keyboard
The trigger and the close button are native buttons, so Enter and Space
press them. Escape asks the popover to close, wherever focus is. When the
popover opens by a press, focus moves to the initialFocus element, or
else to the first element in the popup that Tab reaches, or else to the
popup. Tab leaves the popup for the page, and the popover then asks to
close with focus-out. As a close starts with focus in the popup, focus
goes back to the trigger, and the popup is inert through its exit.
Dialog describes the rest, which is the same here.
Modes
modal: false, the default: the page stays usable.modal: "trap-focus": focus stays inside, and the page still scrolls and takes clicks.modal: true: the page behind takes no presses and doesn't scroll, and focus stays inside. A press on the trigger then counts as a press outside.
Hover
A trigger with openOnHover asks the popover to open once the mouse has
rested on it for delay milliseconds, 300 by default, with the reason
trigger-hover. A popover opened that way takes no focus, gives no focus
back when it closes, is never modal, doesn't close when focus moves, and its
backdrop takes no presses. It asks to close, with trigger-hover,
closeDelay milliseconds after the pointer has left both the trigger and
the positioner. A layer that covers the trigger and gives the pointer back
where it rested is no new hover. A press on the trigger within 500
milliseconds of the hover keeps it open, as a popover opened by a press, so
a click that was already on its way doesn't close it. After that a press
closes it. Hovering another trigger with openOnHover while the popover is
open moves it there at once.
Several triggers
Every trigger reports its id in RequestedOpen, the consumer's or a
generated one. Store it and pass it as triggerId: the popup is placed
against that trigger, and the consumer draws the content for it.
popover.triggerId is the one the popover is open for.
To animate the content as the popover moves from one trigger to another,
draw it inside popover.viewport(h.div), in the popup. The viewport puts
its children in a <div data-current>. While the popover moves, it keeps
what the last trigger showed in a <div data-previous> before it, inert and
out of the flow, has data-transitioning, and names where the new trigger
is from the last one in data-activation-direction: left or right, a
space, then up or down, each left out within 5 pixels. The new content
has data-starting-style for the first frame and the old one
data-ending-style after it, and the old content is removed once the new
content's transitions finish.
With a viewport, the positioner's inline style also carries
--positioner-width and --positioner-height, the popup's size for the
current content, and the popup's --popup-width and --popup-height.
Those two are auto, except while the popover moves: they then go from the
old content's size to the new one's, so
.popup { width: var(--popup-width, auto); transition: width 200ms }
animates the resize. The data-previous container carries the old size in
the same two variables.
A PopoverTrigger opens a popover from another part of the page. Give the
popover an id and the trigger the same popupId. Its presses and hovers
reach the popover by themselves, so they arrive as the popover's own
RequestedOpen and RequestedClose.
Inside a dialog
A popover drawn inside a Dialog's popup doesn't count as a nested dialog:
the dialog gets no data-nested-dialog-open. Escape and a press outside
reach the popover first.
Limits
- There is no
payload, handle ordefaultOpen:openandtriggerIdlive in the consumer's Model, which also decides the content. - A trigger inside a toolbar doesn't keep the arrow keys from the toolbar while the popover is open.
Example A popover whose open state lives in the consumer's Model
import { UiSchema } from "effect/ui"import { Html, HtmlServer } from "effect/ui/html"import { Popover } from "effect/ui/kit"import { Effect, Schema } from "effect"
const InboxMessage = UiSchema.TaggedEnum({ RequestedOpenNotifications: {}, RequestedCloseNotifications: {} })
const Inbox = Html.component({ name: "Inbox", model: Schema.Struct({ notifications: Schema.Boolean }), message: InboxMessage}).make({ init: () => ({ notifications: true }), update: { RequestedOpenNotifications: ($) => $.evolve({ notifications: true }), RequestedCloseNotifications: ($) => $.evolve({ notifications: false }) }, view: (h, model) => Popover(h, { props: { open: model.notifications, sideOffset: 8 }, onEmit: { RequestedOpen: () => InboxMessage.RequestedOpenNotifications(), RequestedClose: () => InboxMessage.RequestedCloseNotifications(), Settled: () => undefined }, view: (popover) => h.div( popover.trigger({ element: h.button }).children("Notifications"), popover.portal(h.div)?.children( popover.positioner(h.div).children( popover.popup(h.div).children( popover.arrow(h.div), popover.title(h.h2).children("Notifications"), popover.description(h.p).children("You are all caught up."), popover.close(h.button).children("Close") ) ) ) ) })})
const { html } = await Effect.runPromise(HtmlServer.renderToHtml(Inbox, {}))if (!html.includes("data-side=\"bottom\"")) throw new Error("the popup doesn't name its side")Example A popover that opens inside its card, out of the top layer
import { UiSchema } from "effect/ui"import { Html, HtmlServer } from "effect/ui/html"import { Popover } from "effect/ui/kit"import { Effect, Schema } from "effect"
const DemoMessage = UiSchema.TaggedEnum({ RequestedOpen: {}, RequestedClose: {} })
const Demo = Html.component({ name: "Demo", model: Schema.Struct({ open: Schema.Boolean }), message: DemoMessage}).make({ init: () => ({ open: false }), update: { RequestedOpen: ($) => $.evolve({ open: true }), RequestedClose: ($) => $.evolve({ open: false }) }, view: (h, model) => // The card is the containing block, and its overflow clips the popup. h.div.attr("style", "position:relative;overflow:hidden").children( Popover(h, { props: { open: model.open, topLayer: false, keepMounted: true }, onEmit: { RequestedOpen: () => DemoMessage.RequestedOpen(), RequestedClose: () => DemoMessage.RequestedClose(), Settled: () => undefined }, view: (popover) => h.div( popover.trigger({ element: h.button }).children("Details"), popover.portal(h.div)?.children( popover.positioner(h.div).children(popover.popup(h.div).children("Inside the card")) ) ) }) )})
const { html } = await Effect.runPromise(HtmlServer.renderToHtml(Demo, {}))if (html.includes("popover=")) throw new Error("the popover is in the top layer")if (!/<div[^>]* hidden[^>]* style="position:static/.test(html)) throw new Error("the portal has a box of its own")Components
A headless popover. Call it with the consumer's h and a view closure
that draws the trigger with popover.trigger and the popup with
popover.portal and the parts inside it.
Details
The parts also return plain values for markup that depends on them:
open, mounted (the popover shows, through its exit transition),
transitionStatus, triggerId, the id of the trigger the popover is
open for or last was, openReason, openMethod and closeMethod, side
and align, where the popup is, and instant.
The trigger part takes { element, openOnHover, delay, closeDelay, disabled }.
It reports the id the consumer gave the element in RequestedOpen, and
gives a trigger without one a generated id. Pressing the trigger the
popover is open for asks it to close, and pressing another one asks it to
open for that one.
Each part's attributes win over the ones the consumer set on the builder
it passes in, including the ones a state leaves absent: on the trigger
id, type, disabled, aria-haspopup, aria-expanded, aria-controls,
data-popup-open, data-pressed, data-disabled and data-dialog-trigger;
on the portal what a Dialog owns on it; role and id on the
positioner; id and aria-hidden on the arrow; the data attributes on the
backdrop, positioner, popup, viewport and arrow; and what a Dialog owns on
the popup, title, description, close, initialFocus and finalFocus parts.
The viewport's children are drawn inside its data-current container.
Consumer inline styles override the portal's box defaults. The portal's
document-origin placement, the positioner's and arrow's position and the
backdrop's pointer-events are added after consumer styles. A handler the
consumer adds to a part runs after the popover's own.
It emits RequestedOpen, RequestedClose and Settled.
On a host that doesn't run mounts, such as TestHost, an open popover
shows, so HtmlPlay finds it. On the server, an open popover in place
renders without hidden, and one in the top layer stays hidden until the
client's first commit. On both, the popover isn't placed and doesn't open on
hover from a PopoverTrigger.
History restore saves nothing of it: after Back, forward or a reload it
starts from init.
Signature
declare const Popover: Headless<{ readonly align?: "start" | "end" | "center"; readonly alignOffset?: number; readonly anchor?: string | { readonly height: number; readonly width: number; readonly x: number; readonly y: number; }; readonly arrowPadding?: number; readonly collisionAvoidance?: { readonly align?: "shift" | "none" | "flip"; readonly fallbackAxisSide?: "start" | "none" | "end"; readonly side?: "shift" | "none" | "flip"; }; readonly collisionBoundary?: "clipping-ancestors" | { readonly height: number; readonly width: number; readonly x: number; readonly y: number; } | { readonly id: string; }; readonly collisionPadding?: number | { readonly bottom?: number; readonly left?: number; readonly right?: number; readonly top?: number; }; readonly disableAnchorTracking?: boolean; readonly finalFocus?: boolean; readonly holdExit?: boolean; readonly id?: string; readonly initialFocus?: boolean; readonly keepMounted?: boolean; readonly modal?: boolean | "trap-focus"; readonly open: boolean; readonly openMethod?: "mouse" | "touch" | "pen" | "keyboard" | null; readonly positionMethod?: "fixed" | "absolute"; readonly side?: "left" | "right" | "top" | "bottom" | "inline-start" | "inline-end"; readonly sideOffset?: number; readonly sticky?: boolean; readonly topLayer?: boolean; readonly triggerId?: string | null;}, { readonly _tag: "Settled"; readonly open: boolean;} | { readonly _tag: "RequestedOpen"; readonly reason: "trigger-press" | "trigger-hover"; readonly triggerId: string | null;} | { readonly _tag: "RequestedClose"; readonly reason: "trigger-press" | "outside-press" | "escape-key" | "close-press" | "focus-out" | "close-watcher" | "trigger-hover";}, { align: "start" | "end" | "center"; arrow: Part<"div", [], never>; backdrop: <B extends Keyed<"div">>(element: B) => ReturnType<B["attr"]> | undefined; close: Part<"button", [], never>; closeMethod: "mouse" | "touch" | "pen" | "keyboard" | null; description: <B extends PartTarget<"p">>(element: B) => ReturnType<B["attr"]> & Pick<Part<"p", [id: string], never>, "~R">; finalFocus: Part<string, [], never>; initialFocus: Part<string, [], never>; instant: PopoverInstant | undefined; mounted: boolean; open: boolean; openMethod: "mouse" | "touch" | "pen" | "keyboard" | null; openReason: "trigger-press" | "trigger-hover" | null; popup: <B extends PartTarget<"div">>(element: B) => ReturnType<ReturnType<B["attr"]>["attr"]>; portal: <B extends PartTarget<"div">>(element: B) => ReturnType<ReturnType<B["attr"]>["attr"]> | undefined; positioner: <B extends Keyed<"div">>(element: B) => ReturnType<B["attr"]> & Pick<Part<"div", [], never>, "~R">; side: "left" | "right" | "top" | "bottom" | "inline-start" | "inline-end"; title: <B extends PartTarget<"h1" | "h2" | "h3" | "h4" | "h5" | "h6">>(element: B) => ReturnType<B["attr"]> & Pick<Part<"h1" | "h2" | "h3" | "h4" | "h5" | "h6", [id: string], never>, "~R">; transitionStatus: DialogTransitionStatus; trigger: <B extends PartTarget<"button">>(options: { readonly closeDelay?: number; readonly delay?: number; readonly disabled?: boolean; readonly element: B; readonly openOnHover?: boolean; }) => ReturnType<B["attr"]> & Pick<Part<"button", [key: string, hover: { readonly closeDelay: number; readonly delay: number; } | null, disabled: boolean], never>, "~R">; triggerId: string | null; viewport: Part<"div", [], never>;}, never, never, Shared<"Dialog">, never, never, never, { readonly closeDelay: number; readonly closeReason: "trigger-press" | "outside-press" | "escape-key" | "close-press" | "focus-out" | "close-watcher" | "trigger-hover" | null; readonly hoverTrigger: string | null; readonly method: "mouse" | "touch" | "pen" | "keyboard" | null; readonly onPositioner: boolean; readonly onTrigger: boolean; readonly patient: boolean; readonly placement: { readonly align: "start" | "end" | "center"; readonly anchorHidden: boolean; readonly arrowUncentered: boolean; readonly side: "left" | "right" | "top" | "bottom" | "inline-start" | "inline-end"; } | null; readonly reason: "trigger-press" | "trigger-hover" | null; readonly rest: { readonly triggerId: string | null; readonly x: number; readonly y: number; } | null; readonly stale: boolean; readonly switched: boolean; readonly transition: { readonly direction: string | null; readonly entered: boolean; } | null; readonly trigger: string | null;}, { readonly _tag: "CompletedWaitBeforeClosing";} | { readonly _tag: "Closed";} | { readonly _tag: "ChangedPlacement"; readonly placement: { readonly align: "start" | "end" | "center"; readonly anchorHidden: boolean; readonly arrowUncentered: boolean; readonly side: "left" | "right" | "top" | "bottom" | "inline-start" | "inline-end"; };} | { readonly _tag: "EnteredTrigger"; readonly at: { readonly x: number; readonly y: number; } | null; readonly closeDelay: number; readonly delay: number; readonly drawn: boolean; readonly triggerId: string | null;} | { readonly _tag: "LeftTrigger"; readonly at: { readonly x: number; readonly y: number; } | null; readonly triggerId: string | null;} | { readonly _tag: "RequestedOpenDialog"; readonly triggerId: string | null;} | { readonly _tag: "RequestedCloseDialog"; readonly reason: "trigger-press" | "outside-press" | "escape-key" | "close-press" | "focus-out" | "close-watcher";} | { readonly _tag: "SettledDialog"; readonly open: boolean;} | { readonly _tag: "CompletedWaitBeforeOpening";} | { readonly _tag: "ChangedViewport"; readonly change: { readonly _tag: "Started"; readonly direction: string | null; } | { readonly _tag: "Advanced"; } | { readonly _tag: "Ended"; };} | { readonly _tag: "PressedDetachedTrigger"; readonly pointerType: string; readonly triggerId: string | null;} | { readonly _tag: "LostTrigger"; readonly triggerId: string | null;} | { readonly _tag: "EnteredPositioner";} | { readonly _tag: "LeftPositioner";} | { readonly _tag: "CompletedWaitBeforeClosingOnPress";} | { readonly _tag: "SwitchedTrigger";} | { readonly _tag: "SettledSwitch";} | { readonly _tag: "Reopened";}, QueryEntries<{}, {}>>PopoverTrigger
unstableA button that opens a popover drawn somewhere else, such as in another
component. Call it with the caller's h, whether the popover is open for
this trigger and the popover's id as popupId, then chain the label.
Details
Its presses and hovers reach the popover with that id by themselves, so the
popover emits RequestedOpen and RequestedClose for them as for its own
trigger part, with this trigger's id. Give the trigger an id and pass
the one RequestedOpen reports as the popover's triggerId, so the popup is
placed against it. Nothing happens while no popover with that id is drawn.
It sets the trigger's type, aria-haspopup="dialog", aria-expanded,
data-popup-open, aria-controls while the popover is open,
data-pressed, disabled and data-disabled, in forward, so they win
over the caller's. It takes the element's mount, so the caller can't set
another one on it.
Signature
declare function PopoverTrigger<Msg, R = never>(h: { readonly button: DialogTriggerElement<Msg>;}, options: { readonly element?: DialogTriggerElement<Msg, R>; readonly props: PopoverTriggerProps;}): DialogTriggerElement<Msg, R>Models
How a popover lines up with its trigger along the side it shows on.
Signature
type PopoverAlign = typeof PopoverAlign.TypeWhy a popover asks to close.
Signature
type PopoverDismissReason = typeof PopoverDismissReason.TypeWhat a Popover emits.
Signature
type PopoverEvents = typeof PopoverEvents.TypeWhy a change of a popover skips its transition, as data-instant reports it.
Signature
type PopoverInstant = "click" | "dismiss" | "focus" | "trigger-change"Why a popover asks to open.
Signature
type PopoverOpenReason = typeof PopoverOpenReason.TypeThe props of a Popover.
Signature
type PopoverProps = typeof PopoverProps.TypeThe side of the trigger a popover shows on.
Signature
type PopoverSide = typeof PopoverSide.TypeThe options of a PopoverTrigger.
Details
open: whether the popover is open for this trigger.popupId: the popover'sid.pressed: whether the popover is open by a press, fromRequestedOpen's reason, fordata-pressed.disabled: the trigger takes no press and no hover.openOnHover,delay,closeDelay: as on thetriggerpart.
Signature
interface PopoverTriggerProps { readonly closeDelay?: number; readonly delay?: number; readonly disabled?: boolean; readonly open: boolean; readonly openOnHover?: boolean; readonly popupId: string; readonly pressed?: boolean;}Schemas
PopoverAlign
unstableHow a popover lines up with its trigger along the side it shows on.
Signature
declare const PopoverAlign: Literals<readonly ["start", "center", "end"]>PopoverDismissReason
unstableWhy a popover asks to close: a Dialog's reasons, or the pointer leaving a
popover that was opened by hover.
Signature
declare const PopoverDismissReason: Literals<readonly ["trigger-press", "outside-press", "escape-key", "close-press", "focus-out", "close-watcher", "trigger-hover"]>PopoverEvents
unstableRequestedOpen asks for the popover to open, with the id of the trigger
and the reason. It is also emitted while the popover is open, when another
trigger asks for it, or when a press keeps a popover that hover opened.
RequestedClose asks for it to close, with the reason. The consumer
decides whether to change open. Settled reports that the transitions and
animations of an open or a close finished.
Signature
declare const PopoverEvents: TaggedEnum<{ RequestedClose: TaggedStruct<"RequestedClose", { readonly reason: Literals<readonly ["trigger-press", "outside-press", "escape-key", "close-press", "focus-out", "close-watcher", "trigger-hover"]>; }>; RequestedOpen: TaggedStruct<"RequestedOpen", { readonly reason: Literals<readonly ["trigger-press", "trigger-hover"]>; readonly triggerId: NullOr<String>; }>; Settled: TaggedStruct<"Settled", { readonly open: Boolean; }>;}>PopoverOpenReason
unstableWhy a popover asks to open: a press on a trigger, or the mouse resting on
one with openOnHover.
Signature
declare const PopoverOpenReason: Literals<readonly ["trigger-press", "trigger-hover"]>PopoverProps
unstableControls whether the popover is open, how it treats the page behind it, where focus goes, and where the popup appears.
Details
open: whether the popover shows. Required: the consumer owns it.modal:falseby default,"trap-focus"ortrue, as the module describes. A popover opened by hover is never modal.triggerId: theidof the trigger the popover is open for, fromRequestedOpen. The popup is placed against it, only it getsaria-expandedanddata-popup-open, and focus goes back to it. With none, the popover remembers the trigger that last asked to open it.keepMounted: the portal stays in the page while the popover is closed, hidden.initialFocus:falseleaves focus where it is when the popover opens.finalFocus:falseleaves focus where it is when the popover closes.id: the popup'sid, generated when left out. Set it to pair the popover with aPopoverTriggerdrawn somewhere else, as itspopupId.openMethod: how the user opened the popover, when the consumer opens it by itself. It wins over the one a trigger's press records, and decides the focus of a touch open.holdExit: a closed popover stays shown, in its ending state, while this istrue, for an exit animation that the consumer runs itself.side: the side of the trigger the popup shows on,"bottom"by default."inline-start"and"inline-end"follow the writing direction.align: how the popup lines up with the trigger along that side,"center"by default.sideOffset: the gap between the trigger and the popup, in pixels.alignOffset: pixels the popup moves along the side.collisionAvoidance,collisionBoundary,collisionPadding,sticky,arrowPadding,disableAnchorTracking: asPositioningdescribes them.positionMethod:"absolute", the default, which scrolls with the page, or"fixed", which is placed again on every scroll and doesn't make the page taller when the popup reaches past its end.anchor: the id of an element, or aRectin the viewport, to place the popup against instead of the trigger.topLayer:falsedraws the popover in place, out of the top layer, as the module's In place describes.truewhen left out.
Signature
declare const PopoverProps: Struct<{ readonly align: optional<Literals<readonly ["start", "center", "end"]>>; readonly alignOffset: optional<Number>; readonly anchor: optional<Union<readonly [String, Struct<{ readonly height: Number; readonly width: Number; readonly x: Number; readonly y: Number; }>]>>; readonly arrowPadding: optional<Number>; readonly collisionAvoidance: optional<Struct<{ readonly align: optional<Literals<readonly ["flip", "shift", "none"]>>; readonly fallbackAxisSide: optional<Literals<readonly ["start", "end", "none"]>>; readonly side: optional<Literals<readonly ["flip", "shift", "none"]>>; }>>; readonly collisionBoundary: optional<Union<readonly [Literal<"clipping-ancestors">, Struct<{ readonly id: String; }>, Struct<{ readonly height: Number; readonly width: Number; readonly x: Number; readonly y: Number; }>]>>; readonly collisionPadding: optional<Union<readonly [Number, Struct<{ readonly bottom: optional<Number>; readonly left: optional<Number>; readonly right: optional<Number>; readonly top: optional<Number>; }>]>>; readonly disableAnchorTracking: optional<Boolean>; readonly finalFocus: optional<Boolean>; readonly holdExit: optional<Boolean>; readonly id: optional<String>; readonly initialFocus: optional<Boolean>; readonly keepMounted: optional<Boolean>; readonly modal: optional<Union<readonly [Boolean, Literal<"trap-focus">]>>; readonly open: Boolean; readonly openMethod: optional<NullOr<Literals<readonly ["mouse", "touch", "pen", "keyboard"]>>>; readonly positionMethod: optional<Literals<readonly ["absolute", "fixed"]>>; readonly side: optional<Literals<readonly ["top", "bottom", "left", "right", "inline-start", "inline-end"]>>; readonly sideOffset: optional<Number>; readonly sticky: optional<Boolean>; readonly topLayer: optional<Boolean>; readonly triggerId: optional<NullOr<String>>;}>PopoverSide
unstableThe side of the trigger a popover shows on.
Signature
declare const PopoverSide: Literals<readonly ["top", "bottom", "left", "right", "inline-start", "inline-end"]>