Thursday, February 24, 2022

storybook - displaying components at reasonable, unsquished widths

I was a little annoyed because even though my component was block/100% width, it was showing up only as wide as it "needed" to be in Storybook - I didn't want to write a custom wrapper for it in the Template since that would show up in "Show Code"... but my coworker pointed out I forgot I was setting layout='centered' - there are also "padded" and "fullscreen", padded was about the visual effect I wanted.

No comments:

Post a Comment