# bulk-action-bar

- 分组：组合组件（Composite）
- 页面：/components/bulk-action-bar
- 源码：packages/react/src/components/bulk-action-bar.tsx

## 导出

```ts
import { BulkActionBar } from "@modra/react";
```

## Props（BulkActionBarProps）

| 名称 | 必填 | 类型 | 说明 |
| --- | --- | --- | --- |
| `selectedCount` | 是 | `number` | Number of selected items. Selection-dependent actions are disabled at 0. |
| `actions` | 否 | `BulkAction[]` | Ungrouped actions; rendered as the first group. |
| `groups` | 否 | `BulkActionGroup[]` | Grouped actions; groups are visually separated. |
| `onClearSelection` | 否 | `() => void` | Renders a "clear" link next to the count while something is selected. |
| `help` | 否 | `React.ReactNode` | Guidance shown in a popover from a help button at the end of the bar. |
| `helpLabel` | 否 | `React.ReactNode` | Label of the help button. Defaults to the locale copy. |
| `trailing` | 否 | `React.ReactNode` | Always-available controls (export, import, …) aligned to the end of the bar. |
| `selectionLabel` | 否 | `(count: number) => React.ReactNode` | Replaces the default "N selected" copy. |
| `disabled` | 否 | `boolean` |  |
