Elon is mining asteroids and I'm just sitting here making modals. Not even good modals. Just modals. For Inertia. Again.
Look, someone has to do it. I could be spending this time learning Rust, contributing to actual open source infrastructure, or at minimum touching grass. Instead, I present to you Inertia X UI — a UI component library for Inertia X, built with the same energy as a 2 AM "how hard could it be" decision.
What Is This, Exactly?
Inertia X is a drop-in replacement for Inertia's Svelte adapter — reactive, server-driven, and criminally underrated. It makes building modals, sidebars and drawers feel like a first-class citizen instead of an afterthought. This library is the UI layer on top of that.
The goal: give you the boring-but-essential stuff without making you write 40 lines of boilerplate every time you need a modal.
Okay But What Does It Actually Look Like?
<script>
import { modal } from 'inertiax-ui'
</script>
<a href="/posts/new" use:modal>Create post</a>
That's it. A Svelte action on a regular anchor tag. Your /posts/new route renders inside a modal. No wrapping component, no state management, no "did you register the plugin" moment. Just a link that opens as a modal because you said so.
Why You Should (Maybe) Care
- Zero extra mental model — if you know Inertia X, you already mostly know this
- It's just a link — progressive enhancement-friendly by nature
- Composable and lightweight — no 200kb runtime surprise hiding in your bundle
- Actively maintained — at least until I get distracted by something shiny
The Honest Part
This is a first attempt. Things will break. APIs will change. I will probably rename something at least once for no good reason. But it exists, it works, and it's on GitHub right now at buhrmi/inertiax-ui.
If you're building with Inertia X and want to not reinvent the modal wheel, give it a spin. PRs, issues, and mild criticism all welcome.
Meanwhile, Elon is definitely not reading this.

Top comments (0)