# IndentBlockConfig

interface

The configuration of the block indentation feature.

If no [`classes`](#member-classes) are set, the block indentation feature will use [`offset`](#member-offset) and [`unit`](#member-unit) to create indentation steps.

```typescript
ClassicEditor
	.create( {
		indentBlock: {
			offset: 2,
			unit: 'em'
		}
	} )
	.then( ... )
	.catch( ... );
```

Alternatively, the block indentation feature may set one of defined [`classes`](#member-classes) as indentation steps:

```typescript
ClassicEditor
	.create( {
		indentBlock: {
			classes: [
				'indent-a', // The first step - smallest indentation.
				'indent-b',
				'indent-c',
				'indent-d',
				'indent-e' // The last step - biggest indentation.
			]
		}
	} )
	.then( ... )
	.catch( ... );
```

In the example above only 5 indentation steps will be available.

See [all editor options](module_core_editor_editorconfig-EditorConfig.md).

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-indent/src/indentconfig.ts#L53)

<a id="properties">

## Properties

<a id="member-classes">

### `classes?: Array<string>`

An optional list of classes to use for indenting the editor content. If not set or set to an empty array, no classes will be used. The [`indentBlock.unit`](#member-unit) and [`indentBlock.offset`](#member-offset) properties will be used instead.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-indent/src/indentconfig.ts#L76)

Defaults to `undefined`

<a id="member-offset">

### `offset?: number`

The size of indentation [units](#member-unit) for each indentation step.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-indent/src/indentconfig.ts#L60)

Defaults to `40`

<a id="member-unit">

### `unit?: string`

The unit used for indentation [`offset`](#member-offset).

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-indent/src/indentconfig.ts#L67)

Defaults to `'px'`

---

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