ToolbarButton
Last updated
Was this helpful?
Last updated
Was this helpful?
/**
* @param {string} [label] - Component label.
* @param {JSX.Element} icon - Component icon.
* @param {string} name - Attribute name.
* @param {function} [onClick] - Function called when the button is clicked.
* @param {object} attributes - Object containing block attributes.
* @param {function} setAttributes - Function to set new block attribute values.
*/
"isFullScreen": {
"type": "boolean",
"default": false
},
import {
TwebSVG,
} from '@tigriweb/components/primitives';
import {
TwebToolbarButton,
} from '@tigriweb/components/attributes';
<TwebToolbarButton
icon={ <TwebSVG icon="arrow-autofit-height" /> }
label={ __('Toggle full height', 'your-theme-name') }
name="isFullScreen"
{ ...{ attributes, setAttributes } }
/>