Skip to content

Commit

Permalink
docs: update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
maraisr committed Oct 23, 2023
1 parent a6e0219 commit fce7e3f
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,22 +32,29 @@ This is free to use software, but if you do like it, consider supporting me ❤
npm install storybook-addon-grid
```

```js
```diff
// .storybook/main.js
module.exports = {
addons: [require.resolve('storybook-addon-grid')],
const config: StorybookConfig = {
addons: [
+ 'storybook-addon-grid'
],
};

export default config;
```

> <details>
> <summary>Chromatic users</summary>
>
> Include this additional preset to configure the column guides for your Chromatic screenshots.
>
> ```js
> ```diff
> // .storybook/main.js
> module.exports = {
> addons: [require.resolve('storybook-addon-grid'), require.resolve('storybook-addon-grid/chromatic')],
> const config: StorybookConfig = {
> addons: [
> 'storybook-addon-grid',
> 'storybook-addon-grid/chromatic',
> ],
> };
> ```
>
Expand Down Expand Up @@ -114,7 +121,6 @@ export const parameters = {

```js
// MyComponent.stories.js

export const Example = () => {...};
Example.parameters = {
grid: {
Expand Down

0 comments on commit fce7e3f

Please sign in to comment.