inertiaui/modal/inertia-modal-development
Claude Code and agent skill by inertiaui/modal
- community
Checking that the SKILL.md file is still in the repository.
Build and work with inertiaui/modal features including opening routes in modals/slideovers, configuring modal behavior, prefetching, local modals, nested modals, event communication, and headless mode. Supports both React and Vue.
Install
npx vskill@latest install inertiaui/modal/inertia-modal-developmentSKILL.md
Inertia Modal Development
Overview
Use inertiaui/modal to open any Laravel route in a Modal or Slideover without modifying existing routes or controllers. Works with both React and Vue, supports nested modals, prefetching, local modals, headless mode, and TypeScript.
When to Activate
- Activate when working with modals or slideovers in a Laravel + Inertia.js application.
- Activate when code references
ModalLink,Modal,HeadlessModal,ModalRoot,useModal,useModalStack,visitModal, orInertia::modal(). - Activate when the user wants to open a route in a modal, configure modal behavior, use prefetching, set up nested modals, or communicate between modals.
- Activate when imports reference
@inertiaui/modal-vueor@inertiaui/modal-react.
Scope
- In scope: modal routes, ModalLink, Modal component, configuration, prefetching, local modals, nested modals, event bus, reload props, deferred props, headless mode, base route/URL, styling.
- Out of scope: general Inertia.js routing without modals, non-Laravel backends.
Workflow
- Identify the task (opening a modal, configuring behavior, setting up communication, etc.).
- Read
references/inertia-modal-guide.mdand focus on the relevant section. - Apply the patterns from the reference, using the correct framework (React or Vue).
Core Concepts
Backend: Opening a Route as a Modal
Use Inertia::modal() instead of Inertia::render() in your controller:
With a base route (enables URL changes and browser history):
Frontend: App Setup
Use renderApp in your app.js/app.jsx:
Frontend: ModalLink Component
Frontend: Modal Component
Programmatic Usage
Configuration
Do and Don't
Do:
- Always use
Inertia::modal()(notInertia::render()) when opening routes as modals. - Always call
renderAppor set upModalRoot/ModalStackProviderin your app entry point. - Use the
navigateprop onModalLink(or global config) when you want URL changes and browser history. - Use
closeOnClickOutsideto disable only backdrop clicks; usecloseExplicitlyto disable both backdrop clicks and Esc key. - Use Axios for form submissions in nested modals to avoid closing the entire stack.
- Import
DeferredandWhenVisiblefrom the modal package (not Inertia) when used inside modals.
Don't:
- Don't forget to set up the
renderApphelper orModalRootcomponent — modals won't work without it. - Don't use
Inertia::render()for modal routes — useInertia::modal(). - Don't use
router.post()(Inertia router) in nested modals — it navigates to the base route and closes all modals. Use Axios instead. - Don't import
DeferredorWhenVisiblefrom@inertiajs/vue3or@inertiajs/reactwhen inside a modal — use the modal package's versions. - Don't reference conversion names in
closeOnClickOutsideandcloseExplicitlytogether —closeExplicitlysupersedescloseOnClickOutside.
References
references/inertia-modal-guide.md
Security
- Security scanPassed, 93 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingresources/boost/skills/inertia-modal-development/SKILL.md
Popularity
- Repository stars
- 240
- Repository forks
- 46
- 7-day trend score
- 27
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 28 Jul 2026, 3 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/inertiaui/modal/inertia-modal-development)