Agent Skills

overlastic

Comprehensive skills for working with Overlastic

Install

npx skills add https://github.com/hairyf/skills --skill overlastic
SKILL.md

Based on Overlastic v0.8.7. A promise-based modal/dialog/popup library supporting React, Vue, and Svelte.

Core References

Topic Description Reference
Constructor Core method for creating overlay constructors core-constructor
Deferred Promise variation with external control methods core-deferred
Global Functions Utilities for mounting elements and name management core-defines
useDisclosure Hook for managing overlay lifecycle and state core-disclosure

Framework References

Topic Description Reference
React Integration Using Overlastic with React components framework-react
Vue Integration Using Overlastic with Vue 3 components framework-vue
Svelte Integration Using Overlastic with Svelte components framework-svelte

Advanced References

Topic Description Reference
Provider Pattern Using OverlaysProvider for context inheritance advanced-provider
Custom Components Integrating existing component libraries advanced-customization
External Control Controlling overlay lifecycle from outside advanced-external-control
Declarative Usage Using overlays in templates/JSX advanced-declarative

Key Concepts

  • Constructor: Receives component, props, and options to mount overlays
  • Deferred: Promise-like object with confirm and cancel methods for external control
  • Mount Options: Configuration for container, ID, index, and deferred instance
  • Lifecycle: Components are destroyed after duration ends when deferred resolves/rejects
  • Imperative Usage: defineOverlay and renderOverlay for callback-based invocation
  • Declarative Usage: Components can be used in templates/JSX with props
  • Provider Pattern: OverlaysProvider for context inheritance
  • Dual Mode Support: Components work in both imperative and declarative modes

Related skills

vercel-react-best-practicesvercel-labs751KReact and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.vercel-composition-patternsvercel-labs361KReact composition patterns that scale. Use when refactoring components with boolean prop proliferation, building flexible component libraries, or designing reusable APIs. Triggers on tasks involving compound components, render props, context providers, or component architecture. Includes React 19 API changes.vercel-react-view-transitionsvercel-labs135KGuide for implementing smooth, native-feeling animations using React's View Transition API (`<ViewTransition>` component, `addTransitionType`, and CSS view transition pseudo-elements). Use this skill whenever the user wants to add page transitions, animate route changes, create shared element animations, animate enter/exit of components, animate list reorder, implement directional (forward/back) navigation animations, or integrate view transitions in Next.js. Also use when the user mentions viewpick-ui-libraryemilkowalski124KPick the right library for a given frontend task from a curated, opinionated list — numbers, OTP inputs, charts, command menus, virtualization, drag and drop, toasts, state, styling, and more. Only runs when explicitly invoked; it does not trigger on its own.

Search skills and MCP servers

Fuzzy search across 23,137 skills and servers