SKILL.md
$2a
Advanced References
Topic
Description
Reference
Provider Pattern
Using OverlaysProvider for context inheritance
Custom Components
Integrating existing component libraries
External Control
Controlling overlay lifecycle from outside
Declarative Usage
Using overlays in templates/JSX
Key Concepts
- Constructor: Receives component, props, and options to mount overlays
- Deferred: Promise-like object with
confirmandcancelmethods for external control
- Mount Options: Configuration for container, ID, index, and deferred instance
- Lifecycle: Components are destroyed after
durationends when deferred resolves/rejects
- Imperative Usage:
defineOverlayandrenderOverlayfor callback-based invocation
- Declarative Usage: Components can be used in templates/JSX with props
- Provider Pattern:
OverlaysProviderfor context inheritance
- Dual Mode Support: Components work in both imperative and declarative modes