Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Controls and Viewport addons to Storybook #37

Open
GBKS opened this issue Sep 9, 2021 · 2 comments
Open

Add Controls and Viewport addons to Storybook #37

GBKS opened this issue Sep 9, 2021 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@GBKS
Copy link

GBKS commented Sep 9, 2021

The Viewport addon makes it easy to see the components inside smartphone-sized layouts.

The Controls addon allows you to define properties of the component that can then be easily edited via the Storybook UI. For example, the bitcoin amount on the homescreen can be a property. You'd see a numerical input field in the Storybook UI, and changing it there would push the new amount into the live component where it would instantly re-render. This is super convenient to test component states.

@Aman035
Copy link
Owner

Aman035 commented Sep 9, 2021

@GBKS thank u for suggesting this.
Analyzing components using inspect was really giving me a headache.
I was using mobx store for global state management, but for local state management and component state testing Controls addon is perfect.

@Aman035 Aman035 self-assigned this Sep 9, 2021
@Aman035 Aman035 added the enhancement New feature or request label Sep 9, 2021
@Aman035
Copy link
Owner

Aman035 commented Sep 14, 2021

Viewport Addon Added #39

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants