Show Changelog files in the Storybook UI
MIT License
Show Changelog files in the Storybook UI - made with by Dave Bitter
Storybook v7.0.0 or higher is needed to use this addon
Install addon
npm install storybook-addon-changelog-viewer --save
yarn add storybook-addon-changelog-viewer --save
Load addon in .storybook/main.js
module.exports = {
// other configuration here
addons: [
// other addons here.
"storybook-addon-changelog-viewer",
],
};
Import changelog file in story and pass it to the changelog
parameter
import changelog from "./CHANGELOG.md";
export default {
title: "Your Component",
parameters: {
changelog: changelog,
},
};
View changelog in the Storybook UI. There should be a new tab called "Changelog"
This addon was created to make it easier to view changelog files in the Storybook UI. Since Storybook v7.0.0. the Storybook Addon Notes is no longer working which is why this addon was created.