# ToolbarGroup

[TwebToolbarGroup](https://github.com/tigriweb/components/blob/master/attributes/TwebToolbarGroup.js)

<div align="left" data-full-width="false"><figure><img src="https://870798947-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWAokPCWM65E5XQJVixgi%2Fuploads%2FzDpROry3Tk09ZOg6xGwS%2Ftoolbar-group.jpg?alt=media&#x26;token=549ce02f-5a0f-43ef-af17-3c1f835202cf" alt=""><figcaption></figcaption></figure></div>

<details>

<summary>{ label, icon*, name*, onClick, attributes*, setAttributes* }</summary>

```jsx
/**
 * @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.
 */
```

</details>

{% code title="block.json" overflow="wrap" %}

```json
"tabsAlign": {
	"type": "string",
	"default": "left"
},
```

{% endcode %}

{% code title="index.js" overflow="wrap" %}

```jsx
import {
	TwebSVG,
} from '@tigriweb/components/primitives';

import {
	TwebToolbarGroup,
} from '@tigriweb/components/attributes';
```

{% endcode %}

{% code title="index.js | edit()" %}

```jsx
<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 } }
/>
```

{% endcode %}
