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

Storybook: Add stories for ImageSizeControl Component #68285

Conversation

SainathPoojary
Copy link
Contributor

related to #67165

What?

Added a Storybook story for the ImageSizeControl component. This story includes documentation for props and a default example with adjustable image dimensions and size options.

Why?

  • To provide clear visual documentation for the ImageSizeControl component.
  • To enable interactive testing for various ImageSizeControl scenarios.
  • To enhance the development experience for Block Editor components.

Testing Instructions

  1. Run npm run storybook:dev
  2. Open Storybook at http://localhost:50240/
  3. Verify that the story renders correctly with the default settings.
  4. Test onChange and onChangeImage callbacks by observing console actions.
  5. Ensure all documented props work as intended.

Screenshots or screencast

@Mamaduka
Copy link
Member

Thanks for contributing, @SainathPoojary!

There is probably no need to add a story for this component. It will be deprecated soon when the alternative ResolutionTool component is stable. See #56403.

@SainathPoojary
Copy link
Contributor Author

Thanks for the clarification, @Mamaduka! Since this component is going to be deprecated soon, I’ll close this PR.

@Mamaduka
Copy link
Member

Thanks again for contributing, @SainathPoojary!

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

Successfully merging this pull request may close these issues.

2 participants