mcpField
O
overlastic

overlastic

github.com/hairyfDevelopment26675 installsUpdated 2w ago
Repository

About overlastic

A reference skill for Overlastic, a promise-based modal, dialog, and popup library for React, Vue, and Svelte. It documents imperative and declarative usage, lifecycle control, and framework-specific integration.

Key features

  1. 01Overlay constructors and deferred control
  2. 02React, Vue, and Svelte integration
  3. 03Imperative and declarative usage
  4. 04Provider-based context inheritance
  5. 05External overlay lifecycle control

Use cases

  1. 01Adding promise-based dialogs to a React app
  2. 02Using overlays in Vue or Svelte components
  3. 03Controlling an overlay from outside its component

Install

Copy the command and run it in a terminal.

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

After installing, type/overlasticin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

LICENSE.md
SYNC.md
references/
advanced-customization.md
advanced-declarative.md
advanced-external-control.md
advanced-provider.md
core-constructor.md
core-deferred.md
core-defines.md
core-disclosure.md
framework-react.md
framework-svelte.md
framework-vue.md

Details

From the project README

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

Core References

TopicDescriptionReference
ConstructorCore method for creating overlay constructorscore-constructor
DeferredPromise variation with external control methodscore-deferred
Global FunctionsUtilities for mounting elements and name managementcore-defines
useDisclosureHook for managing overlay lifecycle and statecore-disclosure

Framework References

TopicDescriptionReference
React IntegrationUsing Overlastic with React componentsframework-react
Vue IntegrationUsing Overlastic with Vue 3 componentsframework-vue
Svelte IntegrationUsing Overlastic with Svelte componentsframework-svelte

Advanced References

TopicDescriptionReference
Provider PatternUsing OverlaysProvider for context inheritanceadvanced-provider
Custom ComponentsIntegrating existing component librariesadvanced-customization
External ControlControlling overlay lifecycle from outsideadvanced-external-control
Declarative UsageUsing overlays in templates/JSXadvanced-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

Comments

Markdown supported