@not-govuk/storybook-preset

0.8.6 • Public • Published

NotGovUK - Storybook Preset

A Storybook preset that renders components similarly to our apps.

Using this package

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'
      }
    }
  ]
};

Working on this package

Before working on this package you must install its dependencies using the following command:

pnpm install

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @not-govuk/storybook-preset

    Weekly Downloads

    60

    Version

    0.8.6

    License

    MIT

    Unpacked Size

    4.77 kB

    Total Files

    4

    Last publish

    Collaborators

    • daniel-ac-martin