macOS
JS behaviour
Popover
A macOS popover with its tail aimed at its button: frosted glass, a big soft shadow, closing on outside click or Escape, and auto-picked placements above/below/either side.
Real scenarios
The component as it is used in a product — not a specimen grid.
Popover
The toolbar button and the floating chip each open the same frosted popover; its 9px tail re-aims and the panel flips above or below whichever anchor has room. Outside click and Escape dismiss it.
Frame options
Label colour
Show guides
Baseline grid at 8px
Frame «Hero» · ۱۲ objects
Important props
| Prop | Type | Default | What it does |
|---|---|---|---|
| tail | arrow | '9px' | A 9px tail that always rotates toward its anchor. |
| dismiss | behaviour | 'transient' | Outside click, Escape or a tab switch closes it. |
| placement | side | 'auto' | Wherever it fits: above, below or beside the anchor. |
Snippet
<button class="mcpop-anchor" aria-expanded="false">گزینهها</button>
<div class="mcpop" data-side="bottom">
<span class="mcpop-tail"></span>
…content…
</div>
<style>
.mcpop { position: absolute; inset-block-start: calc(100% + 9px); inline-size: 260px;
padding: 14px; border-radius: 10px; background: #f5f5f5eb;
backdrop-filter: blur(40px) saturate(1.6); box-shadow: 0 12px 48px #00000033; }
.mcpop-tail { position: absolute; inset-block-start: -8px; inset-inline-start: 24px;
inline-size: 16px; block-size: 16px; rotate: 45deg; background: inherit; }
</style>