Add support for custom viewports and generating them from a tailwind config via storybook_viewports option in config/blast.php. (#85)
It supports an array with the structure found in the Storybook docs and it can also use your Tailwind config to generate the viewports for you by setting the value to 'tailwind'.
It supports the various ways you can define breakpoints in Tailwind using these rules:
If the value is a string, it uses that
If the value is an array with only a minor only a max it will use that value
If the value is an array with both a minandmax value it will use the min value
Add support for custom viewports and generating them from a tailwind config via
storybook_viewports
option inconfig/blast.php
. (#85)It supports an array with the structure found in the Storybook docs and it can also use your Tailwind config to generate the viewports for you by setting the value to
'tailwind'
.It supports the various ways you can define breakpoints in Tailwind using these rules:
min
or only amax
it will use that valuemin
andmax
value it will use themin
valueraw
values will be ignoredDisabled viewports
(default)Tailwind viewports (default)
Custom viewports