Skip to content

Storybook: Add stories for ImageSizeControl Component#68285

Closed
SainathPoojary wants to merge 1 commit intoWordPress:trunkfrom
SainathPoojary:storybook/image-size-control
Closed

Storybook: Add stories for ImageSizeControl Component#68285
SainathPoojary wants to merge 1 commit intoWordPress:trunkfrom
SainathPoojary:storybook/image-size-control

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