Skip to content
Back

Writing AssistantPro

AI chat card with a soft gradient glow, suggestions, streaming replies and live voice dictation.

oxyn add writing-assistant

Wren

Your writing companion.

What should we write?

The code is part of Oxyn Pro

The preview stays free for everyone. Pro opens the code of every Pro component, screen, agent-app template, block and kit, plus the Pro CLI.

Get Pro

Rendered from Rust at build time · goes live when visible

When to use

  • A small AI writing chat: suggestions to start from, streaming replies and voice dictation, in a card with a soft gradient glow.

When not to use

  • Prompt composer with model picker, voice input, app connections and approval request: use Chat Composer instead.
  • The model menu of an AI chat: use Model Picker instead.
  • The prompt box for an agent, in six layouts: use Composer instead.

Installation

Writing Assistant is part of Oxyn Pro; the preview is free. Pro items install with the oxyn CLI once your licence is signed in; until then Pro members copy the code from this page.

Terminal
oxyn add writing-assistant

Usage

Dioxus · rust
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Examples

Default

The glow drifts behind the welcome line; a chip sends itself and the reply streams.

Wren

Your writing companion.

What should we write?

Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Chat

After a message: the bubble, the reply, the glow quieter and New chat in the header.

Wren

Your writing companion.
Tighten my email

I fixed two typos, split the long second paragraph and moved your main ask to the first line, so it's the first thing they read.

Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Dictating

Dictating: the mic is a pale-blue tile with level bars and the words land in the field, then send.

Wren

Your writing companion.

What should we write?

Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Classic

Classic style: a stronger glow on an inset panel, capsule chips, a white pill field and a round mic.

Wren

Your writing companion.

What should we write?

Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

API reference

WritingAssistant

PropTypeDefaultDescription
nameString"Wren"Assistant name on top.
taglineString"Your writing companion."Line under the name.
greetingString"What should we write?"Big line on the welcome screen.
suggestionsVec<String>Default::default()Chips that send themselves.
placeholderString"Ask anything…"Placeholder of the prompt field.
askedStringDefault::default()Start with this message already answered.
dictatingboolDefault::default()Start dictating.
nowrequiredClockMs—The clock.
styleStringDefault::default()`clean`, `classic`, or empty to follow `data-cstyle`.
on_actionEventHandler<(String, String)>—(`send` | `dictate` | `new-chat`, text).

Read from the Rust signature and doc comments.

Keyboard interactions

KeyAction
TabSuggestions, the field, the mic, Send and New chat
EnterSend the field

Accessibility

  • New messages are announced politely; "Writing…" carries a label.
  • The mic is a toggle named Dictate / Stop dictation (aria-pressed).

Responsive behaviour

  • Fills its container up to 380 px.
Edge cases (spec)

Up to 380 px.

Notes for AI

  • Import WritingAssistant from oxyn_dioxus and include STATUS_INDICATOR_CSS plus the token stylesheet once.
  • A GPUI version exists: WritingAssistantEl in oxyn_gpui.
  • Props to set first: now.
  • It reads a clock (now) for live timers; pass one clock for the whole page rather than one per component.
  • Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.

Guides

Oxyn · 74 free components · 264 Pro components · 96 screens · 20 blocks · Dioxus and GPUI