seek-oss / playroom

Design with JSX, powered by your own component library.
MIT License
4.48k stars 182 forks source link

[Feature Request] Permit object syntax for widths in config #222

Open caseymhunt opened 3 years ago

caseymhunt commented 3 years ago

Feature request: Currently the widths parameter in playroom config only accepts an array. It would be excellent if an object could be passed as well.

In my use case, our component library uses named breakpoints (sm, md, etc.) which I would love to represent via the frames option in playroom.

How it could look: mockup of names in widths