Attributes
Custom JavaScript components designed to store and manage Gutenberg block attributes. You can use components in the:
1. InspectorControls

import { __ } from '@wordpress/i18n';
import {
InspectorControls,
} from '@wordpress/block-editor';
import {
PanelBody,
} from '@wordpress/components';<InspectorControls>
<PanelBody
title={ __('Panel Title', 'your-theme-name') }
initialOpen={ true }
>
...
</PanelBody>
</InspectorControls><InspectorControls group="styles">
<PanelBody
title={ __('Panel Title', 'your-theme-name') }
initialOpen={ true }
>
...
</PanelBody>
</InspectorControls>Controls:
2. BlockControls

import { __ } from '@wordpress/i18n';
import {
BlockControls,
} from '@wordpress/block-editor';<BlockControls>
...
</BlockControls>Controls:
Last updated
Was this helpful?