Skip to content
M

modal

Modals, dialogs and confirmations

by lobehubFree

#1015in 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

R

react

TSX components, UI libraries, styling, state locality, layout

AI Skills
Get
R

react-ui-patterns

Modern React UI patterns for loading states, error handling, and data fetching

AI Skills
Get
A

ai-elements

Pre-built React components for AI chat interfaces built on shadcn/ui

AI Skills
Get
T

tools

Defines model-callable tools and renders their calls in assistant-ui

AI Skills
Get
P

primitives

Builds and customizes assistant-ui chat UI from composable

AI Skills
Get
O

openui

Building, debugging, integrating, migrating, or documenting OpenUI, OpenUI Lang

AI Skills
Get

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 react, react-ui-patterns and ai-elements. See all modal alternatives

Developer Stuff

Badges