phenixdigital/phoenix_storybook

Full width story preview

LostKobrakai opened this issue · 1 comments

It would be great if for component stories one could configure the layout to be stacked preview/code instead of them being side by side. This would help for particularly wide components like e.g. a navbar.

I'm thinking of adding a new layout parameter on stories, which can be set on the whole story file by defining an optional layout/0 function

Different values can be :one_column or :two_columns (default)

WDYT?