# ToolbarOptions

interface

Options passed to the [`constructor`](module_ui_toolbar_toolbarview-ToolbarView.md#function-constructor) of the toolbar.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-ui/src/toolbar/toolbarview.ts#L1151)

<a id="properties">

## Properties

<a id="member-isFloating">

### `isFloating?: boolean`

This option should be enabled for toolbars in absolutely positioned containers without width restrictions to enable automatic [`items`](module_ui_toolbar_toolbarview-ToolbarView.md#member-items) grouping. When this option is set to `true`, the items will stop wrapping to the next line and together with [`shouldGroupWhenFull`](#member-shouldGroupWhenFull), this will allow grouping them when there is not enough space in a single row.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-ui/src/toolbar/toolbarview.ts#L1170)

<a id="member-shouldGroupWhenFull">

### `shouldGroupWhenFull?: boolean`

When set to `true`, the toolbar will automatically group [`items`](module_ui_toolbar_toolbarview-ToolbarView.md#member-items) that would normally wrap to the next line when there is not enough space to display them in a single row, for instance, if the parent container of the toolbar is narrow. For toolbars in absolutely positioned containers without width restrictions also the [`isFloating`](#member-isFloating) option is required to be `true`.

See also: [`maxWidth`](module_ui_toolbar_toolbarview-ToolbarView.md#member-maxWidth).

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-ui/src/toolbar/toolbarview.ts#L1161)

---

Full index of the CKEditor 5 API reference: [llms.txt](llms.txt)
