A Storybook preset that renders components similarly to our apps.
First install the package into your project:
npm install -D @not-govuk/storybook-preset
Then use it in your .storybook/main.js
as follows:
'use strict';
module.exports = {
stories: [ '../../../components/*/spec/*.stories.mdx' ],
addons: [
{
name: '@not-govuk/storybook-preset',
options: {
baseDir: __dirname,
tsConfig: '../../../tsconfig.json'
}
}
]
};
Before working on this package you must install its dependencies using the following command:
pnpm install