TigriWeb Components
AttributesControlsMetaPrimitivesIntegrations
  • Table of Contents
  • Attributes
    • Checkbox
    • Color
    • ColorGradient
    • DateTime
    • Icon
    • Media
    • Number
    • PostType
    • PostTypeMultiple
    • Radio
    • Range
    • Select
    • Taxonomy
    • TaxonomyMultiple
    • Text
    • Textarea
    • Toggle
    • ToolbarButton
    • ToolbarGroup
  • Controls
    • AppenderButton
    • Media
    • RichHeading
    • RichText
  • Meta
    • Checkbox
    • Color
    • DateTime
    • Icon
    • Media
    • Number
    • PostType
    • PostTypeMultiple
    • Radio
    • Range
    • Select
    • Taxonomy
    • TaxonomyMultiple
    • Text
    • Textarea
    • Toggle
  • Primitives
    • HTML
    • SVG
  • Integrations
    • Enqueue SVG icons
    • Enqueue I18n strings
Powered by GitBook
On this page
  • 1. InspectorControls
  • Controls:
  • 2. BlockControls
  • Controls:

Was this helpful?

Attributes

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

PreviousTable of ContentsNextCheckbox

Last updated 6 months ago

Was this helpful?

1. InspectorControls

index.js
import { __ } from '@wordpress/i18n';

import {
	InspectorControls,
} from '@wordpress/block-editor';

import {
	PanelBody,
} from '@wordpress/components';
index.js | edit()
<InspectorControls>
	<PanelBody
		title={ __('Panel Title', 'your-theme-name') }
		initialOpen={ true }
	>
		...
	</PanelBody>
</InspectorControls>
index.js | edit()
<InspectorControls group="styles">
	<PanelBody
		title={ __('Panel Title', 'your-theme-name') }
		initialOpen={ true }
	>
		...
	</PanelBody>
</InspectorControls>

Controls:

2. BlockControls

index.js
import { __ } from '@wordpress/i18n';

import {
	BlockControls,
} from '@wordpress/block-editor';
index.js | edit()
<BlockControls>
...
</BlockControls>

Controls:

Checkbox
Color
ColorGradient
Icon
Media
PostType
PostTypeMultiple
Radio
Range
Select
Taxonomy
TaxonomyMultiple
Text
Textarea
Toggle
ToolbarButton
ToolbarGroup