Prompt Enhance Button
- from @localmode
- by LocalMode
A one-click 'enhance my prompt' control that hands the user's draft to a local model (via an onEnhance callback wired to useGenerateText) and applies the rewritten prompt — fully offline — with an optional few-shot example editor for interactive prompt tuning. Presentational + callback-driven.
Install
New to shadcn? Set up your project
If your project already has a shadcn components.json, skip initialization. Otherwise, run this once from your project root.
pnpm dlx shadcn@latest initpnpm dlx shadcn@latest add @localmode/ui/input-controls/prompt-enhance-buttonLive preview
No live preview has been built for this component yet.
Registry dependencies1
- @localmode/ui/lib/utils
