Icon

TwebBlockIconControl

{ label, help, name*, attributes*, setAttributes* }
/**
 * @param {string} [label] - Component label.
 * @param {string} [help] - Component description.
 * @param {string} name - Attribute name.
 * @param {object} attributes - Object containing block attributes.
 * @param {function} setAttributes - Function to set new block attribute values.
 */
block.json
"testIcon": {
	"type": "string",
	"default": "map-pin-heart"
}
index.js
import {
	TwebBlockIconControl,
} from '@tigriweb/components/attributes';
index.js | edit()
<TwebBlockIconControl
	label={ __('Icon Label', 'your-theme-name') }
	help={ __('Icon Description', 'your-theme-name') }
	name="testIcon"
	{...{ attributes, setAttributes }}
/>

Last updated

Was this helpful?