> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Editor Command Item

> Command Item

For all the available props, see [cmdk](https://github.com/pacocoursey/cmdk).

```tsx
  ...
  <EditorCommandItem
    value={item.title}
    onCommand={(val) => item.command(val)}>
    Do something
  </EditorCommand>
```

## Props

**children** `ReactNode` *required*

**value** `string` *required*

This value would be used for filtering

**onCommand** `(\{ editor, range \}: \{ editor: Editor; range: Range \}) =\> void;` *required*

Callback function onSelect exposing editor and range

**className** `string`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.