ToolbarGroup

"tabsAlign": {
"type": "string",
"default": "left"
},
import {
TwebSVG,
} from '@tigriweb/components/primitives';
import {
TwebToolbarGroup,
} from '@tigriweb/components/attributes';
<TwebToolbarGroup
name="tabsAlign"
label={ __('Align tabs', 'your-theme-name') }
groupData={ [{
value: 'left',
title: __('Align tabs left', 'your-theme-name'),
icon: <TwebSVG icon="layout-align-left" />,
}, {
value: 'center',
title: __('Align tabs center', 'your-theme-name'),
icon: <TwebSVG icon="layout-align-middle" />,
}, {
value: 'right',
title: __('Align tabs right', 'your-theme-name'),
icon: <TwebSVG icon="layout-align-right" />,
}] }
{ ...{ attributes, setAttributes } }
/>
Last updated
Was this helpful?