Skip to content

Examples

A runnable example app lives in the examples/ directory of the repository. It wires up pages, dialogs, and controls with the Register pattern.

Run it locally

bash
git clone https://github.com/danh121097/vue-micro-router.git
cd vue-micro-router
bun install
bun run dev:example

What it demonstrates

AreaFileShows
App shellexamples/App.vueMounting <MicroRouterView> with config + plugins
Pluginexamples/app-plugin.tsdefineFeaturePlugin with routes, dialogs, controls
Typed stateexamples/auth-state.tsSharing reactive state alongside navigation
Pagesexamples/pages/Page components reading props via useMicroState()
Dialogsexamples/dialogs/Modal dialogs with typed Attrs
Controlsexamples/controls/Persistent HUD overlays

Recipes