Skip to content

Commit

Permalink
docs: update import statement of ImageSizeControl component (#30704)
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 #17148#issuecomment-569528836
  • Loading branch information
ArmandPhilippot committed Apr 12, 2021
1 parent 719d575 commit a4e1eb4
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 a4e1eb4

Please sign in to comment.