Overlays: modals, bottom sheets and drawers, tooltips and popovers, toasts and notifications
Study of UI Elements > Modals and Dialogs (70), Bottom Sheets and Drawers (22), Tooltips and Popovers (25), Toasts and Notifications (38) = 155 designs (94 videos), plus the tags
Modal(347 designs catalogue-wide, 67 in Modals),Drawer(114; 19 in Bottom Sheets, the rest are Sites menu drawers),Toast(69),Tooltip(171, most are chart/slider hover tips in other categories),Notification badge(22), and 21 "dynamic island" titles. Real-product evidence from app screens: "bottom sheet" appears in 2,867 captioned screens (118 apps, almost all mobile), "modal" 3,653, "toast" 1,937 (164 apps), "confirmation dialog" 547 (150 apps), "popover" 1,033, "tooltip" 389, "context menu" 185, "action sheet" only 145. Use those for realism; use the 155 UI-Element designs for motion and detail. Most clips are 4-15 s single-component demos on a neutral stage.
How to find them
python3 scripts/uic.py search --section "UI Elements" --category "Modals and Dialogs"
python3 scripts/uic.py search --section "UI Elements" --category "Bottom Sheets and Drawers" --tag iOS
python3 scripts/uic.py search --section "UI Elements" --category "Tooltips and Popovers"
python3 scripts/uic.py search --section "UI Elements" --category "Toasts and Notifications" --tag Toast
python3 scripts/uic.py search "dynamic island" --limit 25
python3 scripts/uic.py search --tag "Notification badge"
python3 scripts/uic.py strip <ID> --frames 8 --cols 4 # see the open/close choreography
python3 scripts/uic.py screensheet "bottom sheet" --platform mobile --count 24 --per-app 1 -o <out.jpg>
python3 scripts/uic.py screensheet "confirmation dialog" --count 24 --per-app 1 -o <out.jpg>
python3 scripts/uic.py screensheet "toast" --count 24 --per-app 1 -o <out.jpg>
python3 scripts/uic.py screens "modal" --platform web --limit 20 # 2,632 web modal screens in 62 apps
Related: index/categories/UI-Elements/{Modals-and-Dialogs,Bottom-Sheets-and-Drawers,Tooltips-and-Popovers,Toasts-and-Notifications}.md; neighbours outside this file: Banners-and-Alerts (inline, non-floating), Dropdowns-and-Selects, Menus (see navigation.md).
What dominates (quantitative)
- Modals (70): 96%
Modal, 90%Web, 66%Centered, 44%Card layout, 77%Buttons, 33%Input fields, 64% light / 36% dark, 53%Micro interaction, 14%Blur effect, mono type 19% (high; dev/AI products), serif 7%. Domains: Saas 43%, AI 21%, Developer tools 20%, Productivity 20%, Fintech 14%. Page contexts: Onboarding 16%, Dashboard 11%, Settings 9%. Lift:Collaborationx12.2 (share/invite modals are the single biggest subtype),Onboardingx6.0,Formsx5.6,AI featurex4.7. - Bottom Sheets and Drawers (22): 82%
iOS, 86%Drawer, 27%Gesture, 27%Drag interaction, 32%Fintech(+ 14% Banking), 68% light, 41% square / 41% landscape / 18% portrait (rendered inside phone mockups, 23%Mockups), 18%Blur effect, 14%Glassmorphism. Median clip 9 s (shortest in the set). - Tooltips and Popovers (25): 92% light mode (the most light-skewed category here), 84%
Tooltip, 52%Hover effect, 44%Desktop, 40%Productivity, 32%Developer tools, 24%Editor, 16%Timeline, 36%Floating elements. 76% landscape. Mono/serif each 12%. - Toasts and Notifications (38): 97%
Micro interaction, 82%Toast, 39%Morphing, 24%Notification badge, 21%Card stack, 16%Loading animation, 32%iOS, 39%Developer tools, 45% dark. 10 titles say "Dynamic Island" (26%). 36 of 38 are videos. - Colour: gray + white + black = 95%+ of all four. Semantic colour is only used on state (green success, amber warning, red destructive/badge, blue info). Destructive red appears only on the confirm button or icon; the dialog itself stays neutral.
- Typical specs
~estimatedfrom frames: modal card ~400-560px wide (web), radius ~12-20px, padding ~20-24px, title ~16-18px semibold, body ~13-14px muted; bottom sheet top-corner radius ~20-32px; toast ~280-380px wide, radius ~10-14px (or pill), ~13px text; tooltip ~11-12px text, radius ~6-8px, ~6-8px offset.
Pattern cards
Centered modal dialog (the default)
- Looks like: card centred over a dimmed page: backdrop
rgba(0,0,0,.35-.55)(light UIs) or darker/blurred (dark UIs), card white (#FFF) or#171717-ish with 1px hairline, radius 12-20px, soft large shadow (0 24px 64px rgba(0,0,0,.18)), header row (title left,xicon button right, 28-32px), body, footer with right-aligned secondary (ghost) + primary (solid black or brand) buttons 01M4Y7TGX… (light + dark pair), 01M4ZQZTR… (publish version), 01M4ZJWYN… (create project with AI field). In the app corpus the confirm dialog is ~340-440px with title, one sentence, Cancel + red Confirm (Attio, Mixpanel, Cursor key-delete, Notion comment-delete) [see app-screen queries above]. - Use when / signals:
Modal+Centered+Card layout; forms, confirmations, creation flows. - Build notes: native
<dialog>withshowModal()gets top-layer, inert background, Esc, and focus return for free; else Radix Dialog. Enter: backdrop opacity 0->1 over 150-200ms; cardopacity 0->1, scale .96->1, translateY 8->0180-240ms, ease-out (cubic-bezier(.16,1,.3,1)); exit 120-160ms (exits faster than enters).max-height: calc(100dvh - 48px)with a scrolling body, header/footer pinned. Initial focus: first field, or the safe button on destructive confirms (not the red one). Close on Esc and backdrop click, except when the form is dirty. - Pitfalls: locking scroll by
overflow:hiddenremoves the scrollbar and shifts layout - 01M4XHPE1… compares "scrollbar removed on open" (content width jumps 456 -> 471 px) vsscrollbar-gutter: stable(width stays 456px); use the gutter version. Blur performance: 01M4XSC61… showsbackdrop-filter: blur(20px)on a::beforepseudo-layer behind the card is cheaper than blurring on the card itself (which repaints with content). Buttons order and wording: primary on the right; verbs not "OK". - Refs: 01M4Y7TGX…; 01M4ZQZTR…; 01M4ZJWYN…; 01M4ZHDHJ… Edit Profile; 01M4XD02F… Coming Soon; 01M4ZQZ80… Create Attribute with a second card peeking behind (stacked modal).
Share / invite modal (collaboration)
- Looks like: most common subtype (
Collaborationx12.2). Title, email input + role dropdown ("Can edit/Can view") + Invite button, members list with 32px avatars and per-row role selects, "Anyone with the link" row with Copy link, optional QR; dark and light twins 01M4Z4ECR…, 01M4ZJ1SB…, 01M4Z4EYN…, 01M4ZS3C1…, 01M50SAZJ…, 01M508NVH…, 01M50Q6AV…. Popover version anchored under a Share button: two preview tiles ("With DevTools / Content Only") where the clicked tile turns green with check and "Link copied!" for ~1.5 s then reverts 01M4X6XVS…; payment-link sheet with app icons row 01M4WQ8R7…. - Build notes: success feedback goes where the click happened (button label swap
Copy link -> Copiedwith check, ~1.5-2s,aria-live="polite"), not in a toast on top of a modal. Role select = Radix Select inside the dialog (portal into the dialog container to keep focus trap valid). - Refs: as above.
Destructive confirm with personality
- Looks like: "Delete this file?" card where the file icon can be dragged/tossed into a bin: miss = "Missed. Have another go." counter; hit = file crumples into the bin, then a bottom toast "File deleted - Undo" 01M4FTS0T…. Playful but the toast+Undo is the production-worthy part.
- Build notes: prefer Undo over confirm when the action is reversible (it is faster and the catalogue's toasts embrace it, see Toast cards). Confirm dialogs only for irreversible. Red is on the final button only.
- Refs: 01M4FTS0T…; 01M4YCF87… Stamp Badge Unlock (celebratory modal on dark: stamp image, "Continue"); 01M4QFPN4… Welcome to Pro.
Multi-step / wizard modal
- Looks like: header "New sensor / Step 1 of 3 - Basics", a 3-segment progress bar at the top edge of the card plus numbered step labels (1 Basics, 2 Schedule, 3 Review) with the done step turning green-check; body swaps in place; footer Back (ghost) / Continue (disabled until valid, then black) 01M4Y0XZE…; final success returns to the page and shows a bottom-right dark toast ("Butane Sensor created") - modal and toast chained. Sheet-like "New List" dialog drilling into sub-pickers (Icon with Icons/Emojis/Image tabs; Cover image grid) inside the same card, the card resizing between views 01M4Z7ER4….
- Build notes: keep one
<dialog>; swap step content with a 150-200ms cross-fade or horizontal slide (x 16px), animate card height withResizeObserver+heighttransition (orinterpolate-size: allow-keywords); persist state when going Back; for drill-ins show a back chevron in the header replacing the title. Disabled primary must still explain why (inline hint). - Refs: 01M4Y0XZE…; 01M4Z7ER4…; 01M4Z2J4W… Git workflow walkthrough; 01M4VK4JB… onboarding modal; 01M4XGGPM… Ophelia AI onboarding; 01M50BV8H… monochrome onboarding with animated sphere.
Morph-from-trigger modal
- Looks like: the button itself grows into the dialog: "Sign In" pill -> 400px card with
x, social buttons (X, GitHub), "Or" divider, email, black "Continue ->" - same element, radius 999px -> ~16px, contents blur-in while the pill label blur-out 01M4Z9D85…. The recording also shows Chrome DevTools animation inspector listing animated properties: width, height, border radii, background-color, translate, opacity - i.e. a genuine FLIP-style container morph. Related: live-session pill on a dark canvas (avatars + "+2") that opens into a "Live Session" card with 8 avatars and "Join Now" (button shows a spinner while joining) and collapses back into the pill 01M4X7TBM…; expanding notch generator UI 01M4YGZ0T…; expanding card 01M47YS24…; sign-in button -> modal 01M4Z9D85…. - Build notes: Framer Motion
layoutIdshared between trigger and dialog,transition: {type:"spring", stiffness: 380, damping: 36}(~350-450ms), content fades in after the container reaches ~70% of its size; backdrop fades separately; exit reverses. View Transitions API (view-transition-name) is the CSS-only equivalent. Keep the trigger in the DOM (hidden) so focus returns to it. - Pitfalls: morph + blur on large containers is expensive; respect reduced motion by cross-fading only.
- Refs: 01M4Z9D85…; 01M4X7TBM…; 01M4YGZ0T…; 01M4VK4JB….
AI / agent modal
- Looks like: dark card with a large prompt textarea, model selector chip, attachment/voice icons, send arrow bottom-right; chat modal 01M4XNHV3…, AI email composer 01M4Y3A1X…, video-generation prompt modal with scene thumbnails 01M4ZN4E3…, AI call modal with voice waveform 01M4WN0CJ…, 01M4Z85M7…, model-router config 01M4WJV3X…, feature-unlock 01M4Y5JRZ…, usage/credits 01M4ZHED7…. 21% of Modals are AI-domain (lift x4.7 for
AI feature). - Build notes: textarea autosizes up to ~8 lines; Cmd/Ctrl+Enter submits; show streaming state inside the same card; mono font for model/IDs; avoid purple-gradient glow unless it reinforces the brand (it is the cliché).
- Refs: as above.
Image lightbox / spatial modal
- Looks like: near-fullscreen dark scrim (
rgba(0,0,0,.85)), image at natural aspect centred with 24-32px margin, minimal chrome (close, prev/next, counter), side thumbnails or masonry source grid; zoom-from-thumbnail transition (shared element) 01M4XHPCF…, 01M4WQ5XN…; "case opens"/"receipt unfolds" object-metaphor modals that unfold a 3D object 01M4QGJ41…, 01M4QGKBM…. - Build notes: animate from the thumbnail rect (FLIP), 300-400ms,
ease-out; swipe-down to dismiss on touch; preload neighbours;aria-labelfor controls, arrow-key navigation. - Refs: 01M4XHPCF…; 01M4WQ5XN…; 01M4QGJ41….
Promotional / marketing popup
- Looks like: oversized display type ("Black Friday"), single CTA "Get all from $8/mo" and fine print, close x top-right 01M50FN4E… (glass refraction variant); holographic membership card 01M5PH2MB…; prediction-market onboarding card 01M4ZVVSN….
- Pitfalls: trigger by intent not time; keep the close target >= 32px; do not trap focus without an Esc; this is the pattern users hate most.
- Refs: as above.
Bottom sheet (modal, drag-to-dismiss)
- Looks like: panel docked to the bottom with top radius 20-32px, usually a ~36x4px gray grabber centred at the top (not universal: many app sheets show only an
x), title row (left-aligned title +xat right; orxat left like the X.com "Boost Post" sheet 01M4G263N…), content, then a full-width 48-56px pill CTA (black/brand) pinned to the bottom with safe-area padding. The page behind dims ~40-55% black; in dark apps the scrim is lighter than the sheet. In the app corpus the commonest bottom sheets are: pick-one lists with a check on the active row (country, month, sport), photo-source pickers (Take photo / Choose photo), consent/terms with illustration + "I agree", confirmations (Spotify "Hide song?", Luma "slide to confirm"), card-colour pickers, filters (Notion), map layer selectors (AllTrails), permission asks with primary + secondary text button (Lyft precise location). - Build notes: Vaul (Drawer) or Base UI Drawer (01M4YWZ16… is the Base UI docs demo: right/left/top/bottom directions + nested drawers) or
react-spring-bottom-sheet/native<dialog>. Mechanics: drag with pointer events,transform: translateY(var(--drag)), release decision byvelocity > ~0.5px/msoroffset > 50% of height; rubber-band when pulling beyond top (resistance ~0.5); snap points e.g.[0.35, 0.65, 1]of viewport height (half-expanded Wise month picker, Strava sport picker are the half->full pattern); spring settle ~{stiffness: 400, damping: 40}; scrim opacity is bound to drag progress; scroll inside the sheet only when at snap=1 and content scrollTop=0 starts a dismiss drag. Heightsmax-height: 92dvh. Focus trap +aria-modal; on desktop convert to a centred modal (see Responsive switching). - Pitfalls: sheet content scrolling vs dragging conflict (use
touch-action: pan-yon the handle,overscroll-behavior: containon content); keyboard opening shrinks the visual viewport (visualViewportAPI,dvh); stacking sheets on iOS look like cards peeking from behind (scale .94 + y -12px on lower sheet). - Refs: 01M4G263N… Boost Post (sheet drills to a sub-sheet "Pay with" that replaces content in place, with a back chevron; the price list is a mini wheel with fading edge rows); 01M4YX2D1… Interactive Mobile Editor Bottom Sheet; 01M4YAT40… crypto deposit approval; 01M4Y7VVX… bank transfer progress (steps + progress bar); 01M4ZBHWH… VIP early access invite.
Multi-stage sheet with amount scrubber / content morph
- Looks like: "Make an investment" sheet: large amount
$0with a horizontal ruler scrubber (tick marks) above it; dragging changes digits (digits blur as they roll), fees update live, Confirm is disabled-gray until amount > 0; on confirm the content cross-fades into a green check + confetti "You're invested $2,200!" and the CTA becomes "Done" 01M7ZA6E0…. Natural-language variant: "Buy $100 of BTC every week starting today" with inline tappable tokens 01M7WQSPP…. - Build notes: one sheet, state machine
idle -> input -> confirming -> success; animate numbers withfont-variant-numeric: tabular-nums+ per-digit blur/roll (~200ms); success confetti burst ~1.2s; haptic on tick[inferred]. - Refs: 01M7ZA6E0…; 01M7WQSPP….
Non-modal docked sheet / tray (keeps the page interactive)
- Looks like: persistent bottom toolbar that expands: AI chat input drawer collapsing to a pill 01M4YFPAX…, 01M4Y414Q…, drawer in a chat app with recent conversations 01M4YFPAX…; backdrop picker whose sheet grows from half to near-full as you scroll thumbnails, with a "Blur" toggle and "Choose from Photos" and a handle - no dim, the app screen behind recolours live to the chosen backdrop 01M4ZA4WJ…; Dynamic-Island pull-down tray: swipe down from the island to reveal a formula reference sheet over a quiz, hands back on swipe up 01M504K8Q….
- Build notes:
modal={false}in Vaul; no scrim; sheet snaps at 2-3 heights; content areaoverflow:autoonly at the top snap. - Refs: as above; 01M4VFYCV… interaction collection layout.
Edge-gesture side drawer (people / permissions)
- Looks like: swipe from the right edge of a blue card; a vertical rail of avatars grows out of the edge as a notch-shaped dark cut-out, the focused avatar enlarges (28 -> 44px) and its label ("Chris - Can Edit", "Kate - Can View", "Mia - Invite +") slides out left of the rail while the page content blurs behind; release selects 01M4Y3C52….
- Build notes: edge-swipe zone ~20px; rail = a masked
clip-path/SVG path morph from edge notch to rail; magnification like a dock (see navigation.md dock card) along y; blurbackdrop-filter: blur(8px)on the content. - Refs: 01M4Y3C52…; 01M4YZB53… Apple Pay AutoFill cards transition.
Off-canvas / stacked-layer drawer menu
- Looks like: right-edge dark panel (~35-45% of width on desktop), x top-right, large 20-24px links with hairline
+/arrows; drilling into "Shop" pushes a new layer: previous layers remain as narrow vertical strips on the left edge (breadcrumb labels rotated 90deg), each level a new panel sliding in (~300ms,cubic-bezier(.77,0,.18,1)), page behind dimmed ~40% gray 01M4X4P6K…, 01M4WRCKD…; slide-out cart drawer for e-commerce with line items, qty steppers, subtotal, black Checkout 01M4Z859R…; navigation drawer on a map/transit UI over a glass card 01M501F18…. - Build notes: width
min(420px, 100vw);transform: translateX(100%) -> 0; links stagger 40-60ms with y 12px + opacity; page can translate -4% / scale .98 for depth; back = Esc / edge click; trap focus. - Refs: 01M4X4P6K…; 01M4WRCKD…; 01M4Z859R…; 01M4YWZ16… nested drawers with variable-height stacking (each nested drawer scales previous one down).
Tooltip (hover label, delayed, shared)
- Looks like: 22-28px tall dark bubble (
#111, white 11-12px text, radius 6-8px) above/below the trigger, 6-8px gap, optionally with a keycap suffix ("Comment C") 01M4ZJ3GM…; light bubble with 1px border on light UIs 01M4XHRN4… (cursor-tracking with axis option None/Both/X/Y - the tip follows the cursor along the chosen axis). - Build notes: open delay ~300-700ms (500 typical), but ~0-100ms when another tooltip in the group was open within ~300ms ("skip delay"); 01M4ZJ3GM… shows one tooltip element that glides between toolbar icons (position + width morph ~150ms) instead of re-mounting -
TooltipProvider+ sharedlayoutId; 01M4Y0YVE… shows the same on a macOS-style toolbar where label text swaps ("More..." -> "Use Floating Window") while the bubble resizes. Exit 80-100ms. Arrow optional (most omit). Closes on Esc, blur, scroll. Touch has no hover: show on long-press or avoid tooltip-only information. - Pitfalls: tooltips must not hold interactive content (that is a popover); do not use for essential info; contrast >= 4.5:1.
- Refs: 01M4ZJ3GM…; 01M4Y0YVE…; 01M4XHRN4…; 01M4XXW7B… shared tooltip on a floating toolbar (navigation.md).
Rich hover card / data tooltip
- Looks like: 240-320px white card ~12px radius, avatar + name + meta + stats row + link ("Open on GitHub"), connected to a list/timeline row; the "Smart Hover" demo compares "Super hover" (card follows with safe movement between rows) vs "Native hover" (flickers closed when crossing gaps) on a commit list 01M4XXTMG…; spatial avatar tooltip: name bubble pops above a cluster of overlapping avatars and slides to the hovered one 01M50P76Y…; grid testimonials hover 01M50N67K…; photo tooltip reveals in a bio paragraph 01M4YEH1C…; Codex code-review hover card over scrollbar markers 01M4FX6D8…; git PR hover card over a painting 01M50SAXE….
- Build notes: Radix HoverCard
openDelay 300 / closeDelay 150; card is portalled,hoverable contentmeans moving the pointer onto it keeps it open (same safe-polygon logic as submenus); content fadesopacity + y 4px150ms; skeleton while data loads. - Refs: as above.
Popover with morphing content
- Looks like: click-triggered 280-360px panel anchored to a button with 8px offset, radius 12-14px, border + shadow; content can switch between sub-views while the container animates its size 01M4XYFTQ… (comparison of popover animations: scale-from-trigger vs fade-only vs spring, with a Slow/Fast toggle - the blue pill row shows 1/2/3/4-icon variants), view switcher popover (List/Grid/Kanban/Canvas) in frosted glass 01M4QDYR0…, share dropdown with avatars 01M4QKPAR…, macOS window flyout with traffic lights and a "Green" menu 01M4WHXKN…, layer-blur settings popover with Uniform/Progressive segmented control 01M50XGBG…, video-editor export popover on a timeline 01M4XR52Y…, version-history timeline popover 01M4ZX9P0…, add-job grid card 01M4ZYDHA…, share-transcript popover with animated paperclip 01M4WR7H7….
- Build notes:
transform-origin= trigger edge/arrow tip (var(--radix-popover-content-transform-origin)), enterscale .95 -> 1+ fade 150ms; exit 100ms; position via Floating UIoffset(8) flip shift. Dismiss on outside press and Esc; focus first control; return focus to trigger. Anchored popovers do not dim the page. - Pitfalls: scaling from centre instead of the trigger looks wrong; never let a popover cover its own trigger.
- Refs: 01M4XYFTQ…; 01M4QDYR0…; 01M50XGBG…; 01M4ZX9P0…; 01M4WR7H7….
Selection toolbar / inline annotation popover
- Looks like: appears on text selection: 36-44px pill (B / I / link / highlight / AI) 01M4Y6HR3…; highlight tool that draws a marker-style fill and then offers "Ask AI" with an inline chat popover and follow-up 01M50SFCA…, 01M4YSEKN…, voice AI editing 01M4XNHBD….
- Build notes: anchor to
Range.getBoundingClientRect(),flipabove/below,mousedown preventDefaultto keep selection; AI popover persists until Esc; keep annotation anchored with highlight id. - Refs: as above.
Toast / snackbar (single)
- Looks like (web): bottom-right or bottom-center, 320-380px, white or
#111card, radius 10-14px, soft shadow, 16-20px status icon (green check / amber / red / blue info), 13-14px title + optional 12-13px description, right-aligned action ("Undo", "View", "Retry") andx; auto-dismiss 4-6s with progress or pause-on-hover 01M4Y8KYS…, 01M4YABDD… (compares an inline "Copied" state change in the button vs a toast; inline wins for local feedback). Mobile: top, below the status bar/Dynamic Island, full-width with 12-16px side margin, title + body + Close button ("Join a team ... Close") in 5 semantic colours (default, accent, success, warning, danger) 01M50N9PX…. Real apps use toasts for: copied to clipboard (Linear, Customer.io), invitation sent (Mixpanel, Zendesk), saved/created, export progress -> success (Perplexity), "Notifications on", upload status (Dovetail). - Build notes:
aria-live="polite"region (userole="status"; errorsrole="alert"); entery 12px -> 0 + opacity200-250ms spring; exitopacity + x 24px150ms; swipe-to-dismiss on touch; pause timer on hover/focus and when the tab is hidden; never auto-dismiss toasts that hold an action the user may need (or provide persistent history); max 3 visible. - Pitfalls: toast over a modal is the wrong layer for feedback that belongs to the modal (put it inline); don't toast form validation errors; an Undo toast must undo for real.
- Refs: 01M4Y8KYS… Toast Notification System UI Animation; 01M4YABDD…; 01M50N9PX…; 01M4Z9B2G… snackbar playground (variants Default/Description/Long description/Action/Long title x Default/Success/Error); 01M50VD2K… component playground + toaster.
Stacked / collapsing toast deck
- Looks like: new toasts push older ones back: older cards scale down (~0.95, 0.90), shift up 8-12px and dim, only the top card is fully readable; hover expands the stack into a vertical list (gap 8-10px) and pauses timers; dismissed cards slide out and the stack reflows. Dev-tool flavour: result cards with micro-visualisations (test grid "Tests passed 52 in 1m 12s", branch graph "PR #482 merged", build bars "Build 40% faster", context meter "Context almost full" + Compact action) 01M8D73KX…; upgrade/credits/storage cards in 3 colours where actions are pill buttons (Upgrade amber, Remove red, Strong green) 01M4WY33N…; product-announcement stack ("50% off GPT-5.6 Sol", "Ship 26", "Observability Plus") swapping on the same footprint with a thin ghost card above 01M4QK8YG…; stacked toast animation 01M4ZAT8Z…; dark notification card stack 01M502NMV…; "Dismissible toasts" 01M4QJJY9….
- Build notes: the Sonner model
[inferred]: containerposition: fixed; bottom: 16px; right: 16px; width: 356px; each toastposition:absolute; bottom:0withtransform: translateY(calc(var(--i) * -8px)) scale(calc(1 - var(--i) * .05))andopacityfalloff;[data-expanded=true]switches totranslateY(calc(var(--offset-y) * -1))using measured heights; transition 300-400mscubic-bezier(.21,1.02,.73,1); remove at 4-5s of non-hover time; limit visible to 3 (older fade to 0 and unmount). Each card is focusable (tabIndex=0) with Esc to close all. - Pitfalls: transform-based stacking must be height-aware (toasts of different heights); announce each message to AT only once; keep the stack out of the way of primary CTAs (bottom-right on desktop chat UIs collides with composers - 01M4QK8YG… uses the bottom-left of the sidebar instead).
- Refs: 01M8D73KX…; 01M4QK8YG…; 01M4WY33N…; 01M4ZAT8Z…; 01M502NMV….
Morphing status pill (toast as state machine / "Island")
- Looks like: a small black pill at top (or white pill on dark) that changes content by morphing: "Changes Saved" (green check) -> "Storage Almost Full" with a notch-shaped tab expanding into a message body (tab+body silhouette is one path) -> "Booking Confirmed" expanding into a boarding-style flight card (DEL -> SFO, On Time, 32K, "View Details") 01M4Z0WHH…; black "Island that splits" pill with an avatar + status badge: merges two blobs with gooey metaball, flashes red glow on error, shows spinner + pencil on work, check on done, "Follow up - Draft reply ready" with a right action 01M4QFQ2C…, 01M4QM8JF… Agent status pill ("Thinking", "Read app-sidebar.tsx 219 lines"); async queue add 01M7W8YY4…; voice dictation pill with waveform states 01M4WW9VW…; data sync alert with states Data missing (amber, Ignore / Sync now) -> "46 items synced" (green, Show details) -> inline Transactions list with Done 01M4YV9CJ…; release-notes toast that doubles as a progress ring (25%) and expands into a checklist 01M4X18NJ….
- Build notes: one container,
layoutanimation, text usesAnimatePresence mode="popLayout"with blur 4px + y 6px cross-fade; radius interpolates 999px -> 20-28px as height grows; spring ~{type:"spring", stiffness: 500, damping: 35}(~300-400ms); gooey = SVGfeGaussianBlur + feColorMatrixfilter (stdDeviation ~8-10, alpha contrast 20 -9) on a wrapper; hold each state >= 1.5-2.5s; icons crossfade not slide. Fall back to plain fade for reduced motion. - Refs: 01M4Z0WHH…; 01M4QFQ2C…; 01M4YV9CJ…; 01M4X18NJ…; 01M4QM8JF….
Dynamic Island / Live Activity concepts
- Looks like: 126x37px black capsule (radius 999px) at the top of an iPhone mockup that grows into a live-score card (ARS 1-1 MCI with 72' and event line "Goal - ARS 72'", expands to fixture and league browser with crest grids) 01M49CKDC…; modular LEGO-brick island with 3D brick controls 01M4FX92G…; music sharing (lock -> Apple Music notification -> shared list) 01M4X4PPS…; live activities for sports/health/EV charging/timers 01M4ZZGWT…; satellite SOS + ISS flyover 01M4YHCXC…; Siri orb with caustics on lock screen 01M4G7HM6…; web version: fluid island pill splitting/merging with gap sliders and a debug view 01M4XSFAK….
- Build notes: compact (126x37) -> expanded (up to ~358x~160, radius ~44px) with spring
{stiffness: 300-400, damping: 28-32}; content usesopacity+blurswap with 60ms delay; two-region compact state (leading/trailing icons) + minimal; use pure black#000fill to merge with the hardware cut-out; add 1px inner glow only on the web. Concepts are 100% imagery here - the real system needs ActivityKit. - Refs: as above; 01M4YR60D… reading-progress island (Progress and Steps category).
Native-style notification banner (iOS)
- Looks like: rounded rectangle (radius ~22-26px) translucent-gray (
rgba(60,60,67,.6)on dark) below the status bar with 36px app icon/avatar, bold title + 1 line body; dismisses by swipe up; "expandable": drag the grabber (3px x 36px bar at the bottom) down and the banner grows into a full content card with an input field ("Expanded content goes here - Type your message...") 01M50XEZ3…; meeting reminder with Join/Decline buttons 01M50WGD5…, 01M4FHE03…; in-app notification cards as stacked chips 01M4VNFM3…, 01M4VPSFT…; extension update toast with 7 tool icons 01M4X653Y…. - Build notes: pan gesture on banner: up > 20px dismisses (velocity), down expands; auto-hide ~5s unless expanded; background blurs while expanded (
backdrop-filter: blur(12px)). - Refs: as above.
Notification badge and bell
- Looks like: 16-20px red dot/count bubble at top-right of a 40px icon button (
#E5383B-ish red, white 11px bold digits, 2px ring of the surface colour), count changes with a pop (scale 1.25 -> 1 spring) and digit roll; 9+ / 99+ clamping; yellow dot on glass nav 01M4QKAWR…, 01M4X7YT0… bell counter with +/- demo (1, 4, 7, 19...), pulsing icon 01M50NC51…, sidebar notification card 01M4Z1QYY…. - Build notes: number container min-width = height (circle), grows to pill at 2+ digits; animate count with vertical digit roll 200ms; bell ring = rotate keyframes ±12deg x3, 600ms, only on new arrival; dot variant for "something new" without count; always provide
aria-label="3 unread notifications". - Refs: 01M4X7YT0…; 01M50NC51…; 01M4QKAWR….
Layering, backdrop and choreography cheat sheet
| Layer (low -> high) | z-index habit | Backdrop | Enter | Exit | Dismiss |
|---|---|---|---|---|---|
| Tooltip / hover card | 1000-1100 (portal) | none | 100-150ms fade (+ 4px y) after 300-700ms delay | 80-100ms | pointer leave, Esc, blur |
| Popover / dropdown | 1000 | none | 150ms scale .95 -> 1 from trigger |
100ms | outside press, Esc |
| Drawer / sidebar overlay | 1200 | dim 30-50% | 250-350ms slide, cubic-bezier(.32,.72,0,1) |
200-250ms | scrim, Esc, drag |
| Bottom sheet | 1200 | dim 40-55% bound to drag | spring ~400ms | spring/200ms | drag > 50% or fast flick, scrim, handle |
| Modal dialog | 1300 | dim 35-60%, blur 0-20px | 180-240ms scale .96 -> 1 | 120-160ms | Esc, X, (scrim if safe) |
| Toast / banner | 1400-9999 | none | 200-300ms spring from edge | 150ms slide/fade | timer, swipe, X |
- Use the top layer:
<dialog>/Popover API render above everything without z-index wars; otherwise portal tobodyand define a token scale (dropdown 1000, overlay 1200, modal 1300, toast 1400). Never let toasts sit under modal backdrops. - Backdrop habits observed: light-mode modals dim ~35-50% black with no blur; dark-mode UIs dim by blur + darken (frosted dark, 3% of Modals use
Frosted dark);Blur effectis 14% of modals and 18% of sheets. Pairing blur >20px with big areas hurts performance - apply it to a pseudo-element layer (01M4XSC61…). Popovers and tooltips never dim. - Enter/exit asymmetry: enter slightly slower with overshoot-free ease-out; exit 30-40% faster, ease-in. Instant menus (see navigation.md) have no enter animation at all.
- Exit while interacting: blur+fade exits (
filter: blur(6px), 150ms) appear in morph UIs (01M4YJGNZ… action menu exit) - cheap on small elements only.
Gestures and snap points
- Bottom sheets: drag handle (36x4px), content-scroll hand-off, snap points (~35/65/100% or "content height / full"), velocity threshold, rubber-banding, scrim tied to progress, close with
xfor non-touch. Nested sheets scale the underlying sheet to ~.94 and shift ~12px. - Edge swipe drawers: 16-24px activation zone;
touch-action: pan-y; velocity-based; avoid conflict with browser back swipe (leave left 16px free on iOS). - Island/banner swipe: up to dismiss, down to expand.
- Draggable dividers with snap points (readout "50% / 75%") 01M4WVGHR… apply to side panels: snap to 25/50/75% with spring.
- Swipe-to-confirm for high-stakes (Luma "Slide to Confirm" in the app corpus).
Responsive switching
- Modal <-> sheet: below ~640px render dialogs as bottom sheets (same content, radius only top, grabber, CTA pinned bottom with safe-area), above as centred modal; Vaul docs pattern
[inferred]. Popovers become sheets on touch; tooltips become inline helper text or long-press. - Sidebar/off-canvas <-> bottom tabs: see navigation.md "Adaptive navigation".
- Toast position: bottom-right desktop, top/under island or bottom above tab bar on mobile 01M50N9PX…; offset by
env(safe-area-inset-*)and the tab bar height. - Dynamic viewport: use
dvh, handle on-screen keyboard withvisualViewport; lock scroll withoverscroll-behavior: contain+scrollbar-gutter: stableinstead of removing the scrollbar 01M4XHPE1….
Keyboard, focus and a11y baseline [inferred] (catalogue is silent on these)
Modal: role="dialog"/alertdialog (destructive), aria-modal, aria-labelledby, focus trap, initial focus on first field or safe action, return focus to trigger, Esc closes, background inert. Sheet: same + drag has a button alternative. Tooltip: role="tooltip" + aria-describedby, shown on focus as well as hover, dismiss with Esc, never contains links. Popover: aria-expanded on trigger, focus moves in, Esc returns. Toast: polite live region, pause on hover/focus, long duration for action toasts, keyboard reach via hotkey (e.g. Alt+T). Badge: text alternative with the count. Motion: prefers-reduced-motion -> fades only, no morph/blur/gooey.
Visual language observed
- Surfaces: white card, 1px
rgba(0,0,0,.06-.08)border, two-layer shadow; dark card#111-#1A1A1Awithrgba(255,255,255,.08)border and ~no shadow. Toast stacks in dark mode are often#0F0F0Fwith amber/green accents on buttons (pill action buttons 22-26px high). - Type: 16-18px semibold titles, 13-14px body at 60-65% opacity, 11-12px tooltips; mono for numbers/IDs/code and keycaps.
- Buttons: primary = black pill or rounded-10 rectangle (white on black), secondary = gray-100 fill or ghost text; destructive = red fill only at confirmation time; full-width 48-56px on sheets.
- Status colour: 16-20px circled icon: green check, amber triangle, red alert, blue info; badge red.
- Stage conventions: device mockups for sheets/islands (23%
Mockupsin sheets), wallpaper gradient behind macOS windows for popovers, neutral#F5F5F5canvas for tips; A/B comparison clips with Slow/Fast toggles are common teaching devices.
Trends, clichés and what feels dated or fresh
- Fresh: morphing containers (pill->panel, toast->card, button->dialog); stacked toasts with expand-on-hover and tiny data visuals; "agent status" pills and live-activity islands (AI products); Liquid Glass sheets (transit nav 01M501F18…, card details 01M4VKZFX…); natural-language bottom sheets; slow-motion/A-B tip clips; shared-element tooltips that glide.
- Cliché: the dark modal with purple/blue glow and a sphere/orb illustration (onboarding + AI sets); centred white card with three role rows (every share modal); Dynamic Island concepts on black; macOS wallpaper stage.
- Dated: native
alert()-like dialogs with only "OK"; toasts that cover the top-right nav; confirmation modals for reversible actions; full-screen interstitial promo modals; tooltips-only icon labelling. - Excellent vs average: excellent = animation origin matches the trigger, exits faster than enters, state change happens inside the same container, feedback stays local, focus is managed, mobile uses sheets; average = every overlay fades in at centre, same duration for enter/exit, toasts re-mount on each new message, backdrop blur on big layers.
Brief -> query recipes
- "Share/invite modal for a SaaS app":
uic.py sheet --section "UI Elements" --category "Modals and Dialogs" --tag Collaboration --limit 24; strip01M4X6XVS7N3DH920EGCCSTY5S. - "Onboarding / multi-step wizard dialog":
uic.py search --section "UI Elements" --category "Modals and Dialogs" --tag Onboarding; strip01M4Y0XZE0EYXDHECQZ79669AYand01M4Z7ER46N5CBXRCF8KCNC942. - "Mobile bottom sheet for a fintech flow":
uic.py sheet --section "UI Elements" --category "Bottom Sheets and Drawers" --tag Fintech; real-world:uic.py screensheet "bottom sheet" --platform mobile --count 24 --per-app 1. - "Toast system with stacking and undo":
uic.py sheet 01M4WY33NFAVGVZPCFS03PMGGY 01M4QK8YGWFQPBQ3VSRXWEN2RX 01M8D73KXZJXDKWN9JATCSVDPV 01M4Z0WHH72ZF5Z9E97K6D69V5 01M4FTS0T3BXNWVBDXY9G10NZD. - "Dynamic-island style status pill":
uic.py search "dynamic island"; strip01M4QFQ2C9BY7KB9N45S5YQW19,01M49CKDCK28J7D2W35S1DRV5C. - "Hover card / tooltip in a dev tool":
uic.py sheet --section "UI Elements" --category "Tooltips and Popovers" --tag "Developer tools"; strip01M4XXTMG3B5193MB5E7320W1Z. - "Destructive confirmation dialog, product-realistic":
uic.py screensheet "confirmation dialog" --count 24 --per-app 1. - "Mobile drawer menu with nested levels":
uic.py strip 01M4X4P6KX2GE4GG08KSKKZ5E2;uic.py search --tag Drawer --section Sites --limit 24for marketing-site versions.
Exemplar index
| ID | title | why it is a good reference |
|---|---|---|
| 01M4Y7TGXD7QECXZKW04NQ8VAC | Light and Dark Modal Dialog Components | baseline modal anatomy in both themes |
| 01M4ZQZ805BB4EFVHSYW8Z5KMK | Create Attribute Stacked Modal Dialog | form modal over blurred app, stacked-card depth |
| 01M4Z9D85C2HK3WY7Z83F56CN7 | Morphing Sign In Button to Modal Dialog | trigger-to-dialog morph with animated-properties proof |
| 01M4Y0XZE0EYXDHECQZ79669AY | IoT Sensor Connection Multi-Step Modal Flow | wizard progress, validation, success toast |
| 01M4X6XVS7N3DH920EGCCSTY5S | Share Modal Copy Link | local success feedback pattern |
| 01M4XSC611GW0QGBAK3HHY9DTH | Modal Backdrop Blur CSS Optimization Tip | pseudo-element blur layer |
| 01M4XHPE11GXM4J8VDY1J5BATK | Scrollbar Gutter Layout Shift Comparison | scroll-lock without layout jump |
| 01M4FTS0T3BXNWVBDXY9G10NZD | Playful Delete Interaction | delete with Undo toast |
| 01M4G263NPGBKAPJ7DK6ZNSR82 | Boost Post UI | real-feeling sheet with sub-sheet navigation |
| 01M7ZA6E02VB6S07388T6TTQ9V | Investment Flow with Amount Dial Scrubber | sheet state machine + success confetti |
| 01M4Y3C52KMQ0RJNE31A0GDC6F | Fluid Edge Gesture for Team Permissions | edge-gesture rail |
| 01M4ZA4WJ5BVVW4GBRRDXNQMD2 | To-Do App Backdrop Selector and Sheet | non-modal sheet, live preview behind |
| 01M4YWZ16D2RZFDKE27TWB2V08 | Interactive Drawer (Base UI) | directional + nested drawers reference |
| 01M4X4P6KX2GE4GG08KSKKZ5E2 | Multi-Level Stacked Drawer Navigation | stacked-layer off-canvas menu |
| 01M4ZJ3GMH9KHY9CX09NTFEVB6 | Floating Toolbar Shared Tooltip | single tooltip gliding between icons |
| 01M4XXTMG3B5193MB5E7320W1Z | Smart Hover Tooltip Interaction Demo | hover-card intent vs native hover |
| 01M4XYFTQPKRAD7MP1V9SEHPCW | Smooth Popover Animation Comparison | A/B popover motion, Slow/Fast toggle |
| 01M4XHRN4SZWPRD9G5GVP5198Q | Cursor Tracking Tooltip | axis-locked cursor-follow tooltip |
| 01M8D73KXZJXDKWN9JATCSVDPV | Agentic Status Toast Stack | stacked toasts with data micro-visuals |
| 01M4QK8YGWFQPBQ3VSRXWEN2RX | Collapsing stack | collapsed card stack with swapping announcements |
| 01M4WY33NFAVGVZPCFS03PMGGY | Animated Toast Notification Stack | colour-coded toasts with action pills |
| 01M50N9PXXTNKPSD3DS2P7F3KW | Mobile Toast Component Stacking | mobile top toasts, 5 variants |
| 01M4Z0WHH72ZF5Z9E97K6D69V5 | Fluid Morphing Toast System | notch-tab toast -> rich card |
| 01M4QFQ2C9BY7KB9N45S5YQW19 | Island that splits | gooey agent status pill |
| 01M4YV9CJZS41PC4CD9187BQZK | Interactive Data Sync Toast Alert States | alert state machine inside one card |
| 01M50XEZ3NE7V8YWDPYSY4CEF4 | Expandable iOS Notification Banner | pull-to-expand banner |
| 01M49CKDCK28J7D2W35S1DRV5C | Football Scores Dynamic Island | island compact/expanded states with live data |
| 01M4X7YT08CXQ1DEVJAZ2JT4T6 | Interactive Notification Bell Counter | badge anatomy and counting |