Color
Last updated
Last updated
/**
* @param {string} [label] - Component label.
* @param {string} [help] - Component description.
* @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.
*/
"testColor": {
"type": "string",
"default": ""
}
import {
TwebBlockColorControl,
} from '@tigriweb/components/attributes';
<TwebBlockColorControl
label={ __('Color Label', 'your-theme-name') }
name="testColor"
{...{ attributes, setAttributes }}
/>