SelectionActions

Select a passage and hand it to an agent for a targeted rewrite.

Installation

Preview

Pistachio holds the top slot all weekend. Churn it first thing Saturday so the batch has time to firm up before the afternoon rush.

Source

Adapted from slev12397/beautiful-ui under the MIT License. Commercial icons were replaced and demo analytics were removed; attribution remains bundled with the component foundation.

API Reference

PropTypeDefaultDescription
leadTextstringText before the selected passage.
selectedTextstringPassage being transformed.
replacementTextstringSuggested replacement.
onAction(action: string, selectedText: string) => voidHandles a rewrite action.
onExplain(selectedText: string) => voidHandles Explain.
onKeep(replacementText: string) => voidKeeps the rewrite.
onDiscard(selectedText: string) => voidDiscards the rewrite.