Styling contract
Wrapper popover ships minimum theme styles, and the underlying primitive surface still exposes stable slot and state attributes for teams that need deeper shell customization.
Core data attributes
[data-slot="popover"]root withdata-open,data-state,data-side,data-align, anddata-disabled.[data-slot="popover-trigger"]exposesaria-expanded,aria-controls, and matchingdata-state.<tng-popover>carries the resolveddata-side,data-align, anddata-stateafter collision-aware positioning.[data-slot="popover-panel"]carries panel state and[hidden]while closed.[data-slot="popover-close"]for explicit in-panel dismissal actions.
Reference CSS
popover-styling.css
css
tng-popover {
--tng-popover-panel-radius: 0.9rem;
--tng-popover-z-overlay: 60;
}
[data-slot="popover-trigger"] {
border-radius: 0.65rem;
}
[data-slot="popover-panel"] {
background: var(--tng-semantic-background-surface);
border: 1px solid var(--tng-semantic-border-strong);
border-radius: 0.9rem;
display: grid;
gap: 0.75rem;
min-width: 16rem;
max-width: min(24rem, 90vw);
padding: 1rem;
box-shadow: 0 22px 42px color-mix(in srgb, var(--tng-semantic-foreground-primary) 22%, transparent);
}
[data-slot="popover-close"] {
border-radius: 0.6rem;
min-height: 2rem;
}
[data-slot="popover-panel"][hidden] {
display: none !important;
}