Storybook Vue 3 Router Decorator
JSON →This package, `storybook-vue3-router`, provides a Storybook decorator specifically designed for Vue 3 components that utilize `vue-router`. It enables developers to wrap their routing-aware components within Storybook stories, allowing for proper testing and display of elements like `<router-view>` and `<router-link>`. The current stable version is 7.0.0, which supports Storybook v10. This library generally releases new major versions to align with new major versions of Storybook, ensuring compatibility. A key differentiator is its ability to easily provision a `vue-router` instance for stories, with options for custom routes, navigation guards, and even a mocked router for simpler use cases, streamlining the process of testing complex routing logic in isolation.
Traffic · last 30 days ↑21% vs prev 7d
top countries 🇺🇸 United States · 🇸🇬 Singapore · 🇩🇪 Germany · VN · 🇫🇷 France