# BulkActionModalRenderProp

**Category:** Common/Types

## API

### Overview

A render-prop type for the `bulkActionModal` prop on collection components (`Table`, `Grid`, etc.). The render function receives selection state (`selectedValues`, `uncheckedValues`, `allSelected`), a `query` object, and modal controls (`openModal`, `closeModal`). Return a React element for the modal content.

### Props

| Prop | Type | Required | Default | Description |
|------|------|----------|---------|-------------|
| `openModal` | `() => void` | Yes | - | Opens the modal . |
| `closeModal` | `() => void` | Yes | - | Closes the modal. |
| `isModalOpen` | `boolean` | Yes | - | return true if the modal is open |
| `allSelected` | `boolean` | Yes | - | return boolean value Whether the Select All option is selected. |
| `selectedValues` | `T[]` | Yes | - | Selected item values. |
| `uncheckedValues` | `T[]` | Yes | - | Unselected item values. |
| `query` | `ComputedQueryFull<F>` | Yes | - | Instance of [ComputedQuery](./?path=/story/common-types--computedquery) that represents the query that resulted in an empty state. Representation of the current paging, sorting and filtering applied. Usually for using together with bulk action such as `updateAll` and `deleteAll`. |

