<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@datashaper/react](./react.md) &gt; [checkedItemsCommand](./react.checkeditemscommand.md)

## checkedItemsCommand() function

Constructs a command for listing out items with checks

<b>Signature:</b>

```typescript
export declare function checkedItemsCommand(list: string[], checked?: string[], onCheckChange?: (name: string, checked: boolean, index: number) => boolean | void, props?: Partial<ICommandBarItemProps>): ICommandBarItemProps;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  list | string\[\] | full list of items to display |
|  checked | string\[\] | <i>(Optional)</i> subset of items to display with checkbox |
|  onCheckChange | (name: string, checked: boolean, index: number) =&gt; boolean \| void | <i>(Optional)</i> |
|  props | Partial&lt;ICommandBarItemProps&gt; | <i>(Optional)</i> any override ICommandBarItemProps to overlay on the command |

<b>Returns:</b>

ICommandBarItemProps


