modal-and-overlay-patterns
FeaturedOverlays — modals, drawers, bottom sheets, popovers — interrupt or augment the main flow. Each type has a different scope, blocking level, and appropriate use case. Use when designing dialogs, confirmation prompts, side panels, action sheets, or any UI element that appears above the main content layer.
Install
Quality Score: 88/100
Skill Content
Details
- Author
- dembrandt
- Repository
- dembrandt/dembrandt-skills
- Created
- 5 months ago
- Last Updated
- today
- Language
- JavaScript
- License
- MIT
Integrates with
Similar Skills
Semantically similar based on skill content — not just same category
overlay-mechanics
The load-bearing details behind modals, drawers, sheets, popovers and menus — which overlay Escape closes when they stack, refcounted scroll locking that finds the page's real scroll frame, compensating the scrollbar gutter so the layout doesn't jump, capping and flipping an anchored popover against its nearest clipping ancestor rather than the viewport, and scoping the mobile viewport scale lock so it doesn't break pinch-zoom. Use when building or fixing a modal, drawer, bottom sheet, dropdown, command palette or tooltip, when the page scrolls behind an overlay, when content shifts sideways as a dialog opens, when Escape closes the wrong thing, or when a menu is clipped or runs off screen. For the animation of overlays use an animation skill.
platform-blocks-feedback-overlays
Show feedback and overlays with the @platform-blocks/ui React Native library. Use when raising notifications with Toast/ToastProvider/useToast, opening modals, bottom sheets or confirm prompts with Dialog/DialogProvider/useDialog/useSimpleDialog, attaching anchored overlays (Popover, Menu/MenuDropdown/MenuItem, Tooltip, ContextMenu), rendering inline messages with Alert, or showing loading and progress state (Loader, LoadingOverlay, Overlay, Progress, Ring, Skeleton), including open-state management with useDisclosure.
popovers-tooltips
Use when building or fixing popovers, tooltips, dropdowns, menus, comboboxes, or any floating/overlay UI — especially when they render off-screen, get clipped, or are mis-positioned. Covers Floating UI in a Stimulus controller (Rails/Hotwire), Tippy/Flowbite/Preline, and the native Popover API.