ZAO造

Conversation

A readable record of requests, responses, and results that preserves your place.

Preview

Su uses the Quiet instrument direction. Use the mode switcher above to see light and dark.

ZAO assistant

North workspace

  1. You

    Summarize storage usage for the North workspace.

    • Storage snapshot
  2. ZAO assistantStorage snapshot

    Storage summary

    The North workspace uses 340 GB of 500 GB. That is 68% used and 32% available. The largest category is photos.

    The table records the same values as the summary; all readings come from the local example snapshot.

    Local example snapshot · 500 GB total capacity
    CategoryIDUsed
    PhotosST-001180 GB
    DocumentsST-00296 GB
    RecordingsST-00364 GB
    Total used340 GB

    Source: Storage snapshot · local example data

    Capacity review

    North workspace · example record

    Keep the current capacity while reviewing growth and retention.

    Ready for review.

  3. You

    What should I check before deciding whether to add capacity?

  4. ZAO assistant

    Before changing capacity

    1. Compare the current reading with recent growth.
    2. Check whether retention settings match your needs.
    3. Review the largest categories with their owners.

    The snapshot describes current usage. It does not establish a growth rate or predict when capacity will run out.

  5. You

    Keep the current capacity and give me a short record of the findings.

  6. ZAO assistant

    Review record

    • Capacity: 500 GB.
    • Used: 340 GB, or 68%.
    • Available: 160 GB, or 32%.
    • Next step: review growth and retention before making a capacity decision.

    No capacity change was made. This record is part of the local example conversation.

    {"workspace":"north","capacity_gb":500,"used_gb":340,"available_gb":160}
    
  • Storage snapshot

Enter adds a line. Ctrl or Cmd + Enter sends.

Local simulation · files stay in this browser

Usage

  • Compose Viewport, List, Item, and Message inside a named Conversation.Root. Give the root a bounded height; the viewport fills the available reading space.
  • Use stable keys for chronological items. The host owns history and response content; Message accepts ordinary React content, including sources, Cards, and Tables.
  • Keep author labels explicit. User requests use a restrained surface; assistant prose remains open on the canvas. Put message actions in Message.Actions.
  • Conversation follows new content while at the bottom. Reading earlier messages suspends following; Latest response restores it without taking keyboard focus.
  • Set Message status for streaming, stopped, and failed responses. Keep partial output readable. Use Root announcement for host lifecycle feedback, or allow Message transitions to announce it.

API

PropValuesDefault
Conversation.Root aria-labelstringrequired
Root announcementhost lifecycle text; overrides automatic announcements—
Viewport / List / Itemnative div / ol / li attributes and refs—
Latestquiet Button; appears when reading earlier contentLatest response
Message.Root author / kindstring / user | assistantrequired
Message.Root statuscomplete | streaming | stopped | errorcomplete
Message.Root metadata / errorReact content—
Message.Content / ActionsReact children and native div props—

Example

import { Conversation, Message } from '@zao/react';

<Conversation.Root aria-label="Workspace assistant" className="h-dvh">
  <Conversation.Viewport>
    <Conversation.List>
      <Conversation.Item>
        <Message.Root author="Assistant" kind="assistant">
          <Message.Content><p>Here is the result.</p></Message.Content>
        </Message.Root>
      </Conversation.Item>
    </Conversation.List>
  </Conversation.Viewport>
  <Conversation.Latest />
</Conversation.Root>

Accessibility

The transcript is a native ordered list inside a named, keyboard-focusable scroll region. Messages have visible author labels and native content semantics. A separate polite status region announces lifecycle changes rather than streamed tokens. Latest response preserves focus; content and native controls remain operable in reduced motion.