Skip to content
Browse docs and components

Suggestion Stack

suggestion-stack

An agent's suggestions as a stack of cards, decided one at a time: apply or skip, or drag the card either way. The next ones peek out behind, and checks show as a split bar.

Responsive

Install

$npxshadcnadd@forme/suggestion-stack

Adds the component, its registry dependencies, and the token stylesheet you import once.

API reference

Read from the source, so it is the API of the file you install. A prop marked * is required.

SuggestionStack

An agent's suggestions, one at a time.

PropTypeDefaultDescription
suggestions*readonly Suggestion[]—
onApply(suggestion: Suggestion) => void—
onDismiss(suggestion: Suggestion) => void—
titleReactNode—Heading above the stack, e.g. "Suggestions for #5347".
applyLabelstring"Apply"
dismissLabelstring"Skip"
emptyReactNode—Shown when every suggestion has been answered.
classNamestring—