Storybook background make grid size customizable
See original GitHub issueI have added "@storybook/addon-backgrounds": "^5.3.19",
and see that it has the option to toggle a grid:
I see that the grid is generated by the linked file and the size is set to 20 on the linked line.
Is there a way to change the cellSize
value?
I see there is another plugin (theming) that has a similar option, but don’t want to add an extra plugin for the same feature.
Issue Analytics
- State:
- Created 3 years ago
- Comments:12 (4 by maintainers)
Top Results From Across the Web
Backgrounds - Storybook - JS.ORG
Backgrounds toolbar also includes a Grid selector. This way, you can quickly see if your components are aligned. You don't need additional configuration...
Read more >How do I set the grid cell size in Storybook 5? - Stack Overflow
I want to globally change the grid size to be 8px and I have tried the following: import { configure, addParameters } from...
Read more >NEW Book Bolt Design Studio | Review + Tutorial - YouTube
Click here to check out Book Bolt and get access to the NEW Book Bolt Design Studio! And use my code SARAH20 for...
Read more >How to Make a Book Cover with Book Cover Creator | Fotor
1. Click the button "Get Started" first to create a blank canvs. 2. Go to "Templates" at the left dashboard, and select "Book...
Read more >Background Remover: Remove Bg from Image for Free | Fotor
Remove image backgrounds 100% automatically in one click with Fotor AI background remover. Open image your now to get cutout in an instant...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hey @T04435,
I traced down
GRID_PARAM_KEY
to being resolved to"grid"
which can be specified inpreview.ts
like so:Cheers!
Huzzah!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.1.0-alpha.16 containing PR #12368 that references this issue. Upgrade today to try it out!
You can find this prerelease on the
@next
NPM tag.