{"library":"vue-router-layout","type":"library","category":null,"description":"Vue Router Layout is a lightweight utility designed for dynamically resolving layout components within Vue Router applications. Currently stable at version 0.4.1, the library provides a programmatic way to define layouts for routes by using a factory function, `createRouterLayout`, which then generates a `<RouterLayout>` component. This component is subsequently integrated into Vue Router's `routes` configuration. The package supports dynamic imports for layout components, enabling efficient code splitting. A key differentiator is its focus on minimalist layout resolution, allowing developers to specify layouts directly within their page components via a `layout` option, including passing props since v0.4.0. Its release cadence is irregular but consistent with bug fixes and features. Crucially, version 0.2.0 marked a breaking change by dropping Vue 2 support in favor of Vue 3, necessitating version awareness for project compatibility. For more comprehensive routing solutions, the author points to `vue-cli-plugin-auto-routing`.","language":"javascript","status":"active","version":"0.4.1","tags":["javascript","Vue","Vue Router","routing","layout","dynamic imports","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install vue-router-layout","imports":["import { createRouterLayout } from 'vue-router-layout'","import type { LayoutResolver } from 'vue-router-layout'","import type { RouterLayoutOptions } from 'vue-router-layout'"]},{"cmd":"yarn add vue-router-layout","imports":[]},{"cmd":"pnpm add vue-router-layout","imports":[]}],"homepage":null,"github":"https://github.com/ktsn/vue-router-layout","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/vue-router-layout","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/vue-router-layout/compatibility"}}