Taxonomy
Last updated
Was this helpful?
Last updated
Was this helpful?
/**
* @param {string} [label] - Component label.
* @param {string} [help] - Component description.
* @param {string} taxonomy - The taxonomy name.
* @param {string} name - Attribute name.
* @param {function} [onChange] - Callback called when the value changes.
* @param {object} attributes - Object containing block attributes.
* @param {function} setAttributes - Function to set new block attribute values.
*/
"testCategory": {
"type": "string",
"default": ""
}
import {
TwebBlockTaxonomyControl,
} from '@tigriweb/components/attributes';
<TwebBlockTaxonomyControl
label={ __('Category Label', 'your-theme-name') }
help={ __('Category Description', 'your-theme-name') }
taxonomy="category"
name="testCategory"
{ ...{ attributes, setAttributes } }
/>