# list/list/utils

module

<a id="functions">

## Functions

<a id="function-createUIComponents">

### `createUIComponents( editor, commandName, label, icon ) → void` _(internal)_

Helper method for creating toolbar and menu buttons and linking them with an appropriate command.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-list/src/list/utils.ts#L22)

#### Parameters

* `editor: Editor`

  The editor instance to which the UI component will be added.

* `commandName: 'numberedList' | 'bulletedList' | 'todoList'`

  The name of the command.

* `label: string`

  The button label.

* `icon: string`

  The source of the icon.

#### Returns

* `void`

---

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