Skip to content

OperationEntityContextPicker

API reference and demos for OperationEntityContextPicker.

Source

import { OperationEntityContextPicker } from "@flanksource/clicky-ui/rpc";

No dedicated Storybook demo is available for this component yet.

The props table documents the component-specific surface. Standard DOM attributes inherited from React, such as className, event handlers, and accessibility attributes, may also be accepted when the component’s prop type extends a native element.

Prop Type Default Description
client* OperationsApiClient — —
items* ChatContextItem[] — —
onAdd* (…) => void — —
onAddMany (…) => void — —
surfaceColor EntityContextSurfaceColor — —
surfaceFilter EntityContextSurfaceFilter — —
surfaceGroup EntityContextSurfaceText — —
surfaceGroupColor EntityContextGroupColor — Icon colour for a top-level provider/group row.
surfaceGroupIcon EntityContextGroupIcon — Icon for a top-level provider/group row (the submenu trigger).
surfaceIcon EntityContextSurfaceIcon — —
surfaceLabel EntityContextSurfaceText — —
surfaceRenderer EntityContextSurfaceRenderer — Replaces the picker dialog for surfaces the host browses its own way.
triggerLabel string Add context —