Skip to content

Home > @liquidrazor/list-display > ToolbarProps

ToolbarProps interface

Props passed to the toolbar slot component. This surface focuses on triggering list-level actions and therefore exposes the current list state and the available general actions.

Signature:

typescript
export interface ToolbarProps

Properties

Property

Modifiers

Type

Description

generalActions?

Array<GeneralAction<any, any>>

(Optional) Collection of actions that apply to the whole list rather than a specific row.

onActionClick?

(actionId: string) => void

(Optional) Callback invoked when a toolbar action is selected.

state

ListState<any>

Latest list state snapshot. Consumers can use this to render counters or to derive disabled states for toolbar controls.