Skip to content
M

modal

Modals, dialogs and confirmations

by lobehubFree

Launch
#1014in AI Skills
0In stores

Description

modal is an agent skill from the LobeHub repository that explains how to open modals, dialogs and confirmations with the imperative modal AP…

Highlights

  • Imperative modal API with createModal and confirmModal
  • Recommends @lobehub/ui/base-ui over the antd Modal
  • Explains the global ModalHost that must be mounted once
  • Covers migrating older modals in steps

Ratings & Reviews

No ratings yet

Be the first to rate modal.

People also visit

A

add-provider-doc

Add documentation for a new AI provider

AI Skills
Launch
A

add-setting-env

Add server-side environment variables

AI Skills
Launch
D

debug

Debug package usage guide

AI Skills
Launch
D

desktop

Electron desktop development guide

AI Skills
Launch
H

hotkey

Keyboard shortcuts, registration, key combinations, scope

AI Skills
Launch
M

microcopy

UI copy and microcopy guidelines

AI Skills
Launch

modal FAQ

What should new modals use?

The base-ui modal stack from @lobehub/ui/base-ui, with createModal, confirmModal and ModalHost.

Why is a modal not appearing?

The app must mount ModalHost from @lobehub/ui/base-ui once near the root. Without it, createModal calls do not show.

What if the project mounts only the root ModalHost?

Add a second lazy ModalHost from @lobehub/ui/base-ui until every imperative modal has been migrated.

How do I install it?

Run npx skills add https://github.com/lobehub/lobehub --skill modal.

Which security audits does it have?

On skills.sh, Gen Agent Trust Hub, Socket and Snyk all pass.

What are the best modal alternatives?

Popular alternatives to modal include add-provider-doc, add-setting-env and debug. See all modal alternatives

Developer Stuff

Badges