Selection Actions
Highlight a passage and hand it to the agent to rewrite.
Installation
bun add elia@import "tailwindcss";
@import "@aile.sh/elia/styles/elia.css";
@source "../node_modules/@aile.sh/elia";Usage
import { SelectionActions } from "@aile.sh/elia";
export function Example() {
return (
<SelectionActions
lead="The migration guide is nearly ready. "
picked="Run the script before friday deploy so indexes rebuild overnight."
rewrite="Run the migration script before Friday's deploy so the indexes can rebuild overnight."
actions={["improve", "shorten", "grammar"]}
onRun={(action, prompt) => console.log("run", action, prompt)}
onKeep={() => console.log("kept rewrite")}
onDiscard={() => console.log("discarded")}
/>
);
}— elia design system · MIT · primitives · https://github.com/aile-sh/elia