overlastic

Promise-based modal and dialog library with imperative and declarative modes for React, Vue, and Svelte. Supports three frameworks (React, Vue 3, Svelte) with framework-specific integration patterns and hooks like useDisclosure Offers both imperative control via constructors and deferred promises, and declarative usage directly in templates/JSX Includes provider pattern for context inheritance, custom component integration, and external lifecycle control Components automatically destroy after configured duration when promises resolve or reject

INSTALLATION
npx skills add https://github.com/hairyf/skills --skill overlastic
Run in your project or agent environment. Adjust flags if your CLI version differs.

SKILL.md

$2a

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
BrowserAct

Let your agent run on any real-world website

Bypass CAPTCHA & anti-bot for free. Start local, scale to cloud.

Explore BrowserAct Skills →

Stop writing automation&scrapers

Install the CLI. Run your first Skill in 30 seconds. Scale when you're ready.

Start free
free · no credit card