Skip to content

sku@11.12.0

Compare
Choose a tag to compare
@seek-oss-ci seek-oss-ci released this 17 May 06:53
· 149 commits to master since this release
3d0c589

Minor Changes

  • Add support for Storybook's preview.js file and re-export the DecoratorFn type from @storybook/react (#792)

    sku now supports global customization of story rendering via a .storybook/preview.(js|ts|tsx) file.

    EXAMPLE USAGE:

    import 'braid-design-system/reset';
    import apac from 'braid-design-system/themes/apac';
    import { BraidProvider } from 'braid-design-system';
    
    import React from 'react';
    import type { DecoratorFn } from 'sku/@storybook/react';
    
    // This will wrap every story in a BraidProvider
    export const decorators: DecoratorFn = [
      (Story) => (
        <BraidProvider theme={apac}>
          <Story />
        </BraidProvider>
      ),
    ];

    See the Storybook docs for more info.