{"repo":"JesusTheHun/storybook-addon-remix-react-router","free":true,"listed":false,"github":"https://github.com/JesusTheHun/storybook-addon-remix-react-router","clone":"git clone https://github.com/JesusTheHun/storybook-addon-remix-react-router.git","description":"Use your app router in your stories. A decorator made for Remix React Router and Storybook","language":"TypeScript","stars":83,"topics":["addon","react","router","storybook","decorator","remix"],"license":"Apache-2.0","category":"saas-starters-boilerplates","readme_excerpt":"Storybook Addon Remix React Router Use Remix React Router in your stories. Starting with react-router@7 , the package react-router-dom is deprecated by Remix. If you still use this package, use the v3 of this addon. If you have dropped it in favor of react-router , use the v4 or v5 depending on your Storybook version. Check the compatibility table at the bottom. Recent changes ✅ Support for React Router v8 with storybook-addon-remix-react-router@7 . ✅ Support for Storybook 10 with storybook-addon-remix-react-router@6 . ✅ Support for Storybook 9 with storybook-addon-remix-react-router@5 . ✅ Support for React Router v7 with storybook-addon-remix-react-router@4 . ✅ Support for Storybook 8 with storybook-addon-remix-react-router@3 . Getting Started Install the package Add it to your storybook configuration: Decorate all stories of a component To add the router to all the stories of a component, simply add it to the decorators array. Note that parameters.reactRouter is optional, by default the router will render the component at / . Decorate a specific story To change the config for a single story, you can do the following : Decorate all stories, globally To wrap all your project's stories inside a router by adding the decorator in your preview.js file. Location To specify anything related to the browser location, use the location property. Inferred path If location.path is not provided, the browser pathname will be generated using the joined path s from the routing property and t","default_branch":null,"files":null,"tree":[],"storefront":"/r/JesusTheHun","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/JesusTheHun/storybook-addon-remix-react-router/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}