AI AGENT ADDONS

Modals and popups are common in web apps. This skill shows you how to build them using the LobeHub imperative API. You do not need to track an open state. Just call createModal when you want to show a dialog.

The skill uses base-ui primitives from @lobehub/ui/base-ui. You also get confirmModal for simple yes/no flows. A global ModalHost component must be mounted near the root. This approach makes your modals easy to reuse and test.

Developers working on LobeHub projects will benefit most. You will learn file structure, content components, and how to use useModalContext inside modal body. The guide also covers i18n and common options.

Add Modal skill to your workflow

Global

mkdir -p ~/.claude/skills/modal

Project

mkdir -p .claude/skills/modal

Source Repository

Stars
79,191
Forks
15,490
Watchers
79,191
License
NOASSERTION
Last Push
23 days ago
Created
3 years ago