Ballmac UI home

Agent 15: draft studio

A drafting studio: pick a saved prompt and fill its blanks, let the agent write a first draft, polish it in place with suggestions you accept or dismiss one by one, and give feedback on the result.

State

The normal view. Pick a state to see what the block shows while it loads, is empty or fails.

Open in v0 (opens in a new tab)

Installation

$ pnpm dlx shadcn@latest add @ballmac/agent-15

Usage

Example: agent-15-demo.tsx
"use client"

import { Agent15 } from "@/components/ballmac/blocks/agent-15/agent-15"

export default function Agent15Demo() {
  return <Agent15 />
}

States

Pass state and the block does the rest: skeletons that match its layout, a clear empty message, an error you can retry, and announcements for screen readers.

  • Loading

    Skeleton prompts and draft under the real heading, announced as loading.

    state="loading"
  • No prompts yet

    Says there are no prompts yet; emptyState sets the copy.

    state="empty"
  • Could not load

    An alert saying nothing was changed, with Try again (onRetry). A draft that fails to write says why and keeps the old one.

    state="error"

Dependencies

npm
None

Use with AI

Draft studio. <Agent15 title description prompts={LibraryPrompt[]} draft={{ text, suggestions }} onGenerate={(prompt, source) => Promise<{ text, suggestions } | void>} onFeedback={(value, reason?) => Promise} />. Inserting a finished prompt calls onGenerate; the draft and its suggestions are replaced with what it returns, or the old draft stays and the reason is shown if it rejects. With the shadcn MCP server set up (guide), ask your agent:

Add the Ballmac UI Agent 15: draft studio (@ballmac/agent-15) to this project with the shadcn MCP, then use it where it fits.

Use it for

  • Writing customer replies or documents from reusable prompts, with a human polish pass
  • A place where a model's draft is always reviewed in place

Not for

  • A long-form editor; use rich-text-editor
  • Reviewing many items; use agent-13

Registry JSON: https://ui.ballmac.com/r/agent-15.json

Free to use in personal and commercial projects.

Ballmac UI Pro

Need the whole screen, not one piece?

150 premium blocks (dashboards, settings, calendars, mail, shops, onboarding), a private shadcn registry and Figma tokens. Blocks that show data come with loading, empty and error states built in.

Not ready? Try three Pro blocks free

Leave your email and the blocks appear right here, ready to copy. Yours to use in any project.