Skip to content

Commit

Permalink
docs: update import statement of ImageSizeControl component
Browse files Browse the repository at this point in the history
ImageSizeControl does not live in `@wordpress/components` but in
`@wordpress/block-editor`. The `__experimental` prefix is also needed.
See WordPress#17148#issuecomment-569528836
  • Loading branch information
ArmandPhilippot committed Apr 11, 2021
1 parent 3a7cb59 commit ca3e9c7
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -7,7 +7,7 @@ Allow users to control the width & height of an image.
Render a ImageSizeControl.

```jsx
import { ImageSizeControl } from '@wordpress/components';
import { __experimentalImageSizeControl as ImageSizeControl } from '@wordpress/block-editor';
import { withState } from '@wordpress/compose';

const MyImageSizeControl = withState( {
Expand Down

0 comments on commit ca3e9c7

Please sign in to comment.