overlastic

v2026.09.24

Comprehensive skills for working with Overlastic

GitHub
安装命令
npx skhub add hairyf/overlastic
Markdown
SKILL.md

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
发现
标签

此技能尚未发布标签。

版本
最新版本元数据

版本

v2026.09.24

发布时间

Sep 24, 2026

分类

未分类

许可证

MIT

源路径

skills/overlastic

默认分支

main

最新提交

4f463c7

Tree SHA

73bcd03