back
loading skill details...
LobeHub imperative modal conventions. Use when creating or migrating modals, dialogs, popups, confirm flows, ModalHost wiring, createModal, confirmModal,…
Modal Imperative API Guide Recommended: @lobehub/ui/base-ui New code should use the base-ui modal stack (headless primitives, not antd Modal): createModal, confirmModal, ModalHost from @lobehub/ui/base-ui useModalContext from @lobehub/ui/base-ui inside modal content Body slot: pass content (or children; runtime uses content ?? children). Global ModalHost (required) Base-ui createModal renders through a separate host from the root package. The app must mount ModalHost from @lobehub/ui/base-ui once near the root (e.g. next to other global hosts). Without it, createModal calls will not appear. If the project only mounts ModalHost from @lobehub/ui, add a second lazy ModalHost from @lobehub/ui/base-ui until all imperative modals are migrated. Why imperative?
don't have the plugin yet? install it then click "run inline in claude" again.