009
Saved prompts you fill in right inside the sentence, each blank growing with its text in its own colour, with quick picks for common answers and a Use button that waits until every gap is filled.
akaprompt templates·variables
Run this in any project set up for the shadcn CLI. It copies the Fill-in Prompts source into your components folder, so the code is yours to change.
npx shadcn@latest add https://devl.dev/r/fill-in-prompts.jsonImport it and render it. Every prop has a typed default, so it works straight away, and you pass your own data when you’re ready.
import { FillInPrompts } from "@/components/fill-in-prompts";
export default function Page() {
return <FillInPrompts />;
}A free React component in the Conversation collection, written in TypeScript with Tailwind CSS on coss ui. MIT licensed.
Read from the Fill-in Prompts source. Everything is optional unless it says required.
| Prop | Type | Default |
|---|---|---|
| templates | PromptTemplate[] | defaultTemplates |
| onUse | (prompt: string, values: Record<string, string>) => void | — |
| className | string | — |