Toolbar
UX verbessern im Backend Dank der Toolbar. Leicht und universal einsetzbar.
Last updated
Was this helpful?
UX verbessern im Backend Dank der Toolbar. Leicht und universal einsetzbar.
Last updated
Was this helpful?
Was this helpful?
import { MediaUpload, BlockControls } from '@wordpress/block-editor';
import { Toolbar, IconButton } from '@wordpress/components';<BlockControls>
<Toolbar>
<MediaUpload
onSelect = { ( image ) => { setAttributes( { image: image.url } ) } }
value={ attributes.image }
render={ ( { open } ) => (
<IconButton
icon="edit"
onClick={ open }
/>
) }
/>
</Toolbar>
</BlockControls>