CompactToolPreferencesList
API reference and demos for CompactToolPreferencesList.
Import
Section titled “Import”import { CompactToolPreferencesList } from "@flanksource/clicky-ui/ai";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 |
|---|---|---|---|
className |
string |
— | — |
emptyLabel |
string |
No tools available |
— |
onRule* |
(…) => void |
— | Emits the rule a toggle means: a group header emits a group rule, a parent header a group+parent rule, and a row a name rule. The caller appends it to the user's list, where a name rule outranks the group rule above it. This is deliberately not "here is the new map". A group toggle that wrote every current member's name would stop applying the moment the catalog gained a member, and the user would have no way to tell. |
title |
string |
Tools preferences |
— |
tools* |
ToolMeta[] |
— | — |
value* |
Record<string, ToolPolicy> |
— | The effective mode of every tool, keyed by name — what the rows render. |