Skip to content
caliper ui pro docs

Tone tuner

Tune the tone of AI writing on a pad instead of retyping a prompt: formal to casual across, brief to detailed down. The puck glides between nine settings by drag, press or arrow keys, and the draft rewrites for each.

Pro

Reply to Dana Whitfield

Re: Refund for order 20931

BriefFormal
CasualDetailed

Neutral, balanced

Thanks for getting in touch. We've approved your €48.00 refund for order 20931, and it will go back to your original payment method within five business days. Let us know if there's anything else we can do.

Draft updated: Neutral, balanced

When to use

  • Reply drafting in support, sales or recruiting tools.
  • Any AI writing feature where users keep asking for “a bit shorter” or “less stiff”.

When not to use

  • Choosing between unrelated outputs; show them as options instead.
  • Settings with more than two dimensions; a pad cannot show them.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/tone-tuner

Adds its 4 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.

API reference

ToneTuner

9 props
PropTypeDefaultDescription
value *ToneValue—
onValueChange *(value: ToneValue) => void—
text *string—The draft for the current setting.
pendingbooleanfalseTrue while the host rewrites for a new setting.
onApply((text: string) => void)—
applyLabelstring"Use this draft"
axes{ x: readonly [string, string]; y: readonly [string, string]; }{ x: ["Formal", "Casual"], y: ["Brief", "Detailed"] }Ends of each axis: x from left to right, y from top to bottom.
labelstring"Tone"
classNamestring—

Keyboard

Home
Jumps to the first item or the minimum.
End
Jumps to the last item or the maximum.

Accessibility

It exposes radiogroup, radio and status semantics, with aria-label, aria-checked, aria-hidden and aria-busy kept in step with state. Changes that matter are announced through a live region.

Notes for AI

Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.

/docs/components/tone-tuner.md

The index of every part is at /llms.txt.

More in Assistant screens