Skip to content
Viewership Inquire
Astro UI

Thinking.

Expandable agent trace for steps, reasoning, search or tool calls.

AgentComponentNo dependencies Beautiful UI, MIT

.md
Reading this week's GA4 data
Checking Google Ads spend
Comparing AI citations 6 prompts
Drafting the weekly summary

Install

  1. Import the foundation once

    foundation.css holds the tokens every component reads.

    Layout.astro
    ---
    // src/layouts/Layout.astro
    import "../styles/foundation.css";
    ---
  2. Copy ThinkingState.astro

    Paste into src/components/viewership/thinking-state/

  3. Use it

    Page.astro
    ---
    import ThinkingState from "../components/viewership/thinking-state/ThinkingState.astro";
    ---
    
    <ThinkingState />

Props 9

PropTypeDefaultDescription
variant "steps" | "reasoning" | "search" | "coding" "steps" Checklist, prose, sources read, or tool calls.
rows { primary: string; secondary?: string; mono?: boolean; add?: number; del?: number; href?: string }[] · Trace rows. Search rows with href are links.
active string per variant Header while working.
done string per variant Header once settled. Announced politely.
query string · Search only: the query line.
more string · Search only: trailing note, e.g. "+5 more".
open boolean false Stay expanded once settled.
autoplay boolean true Play in view. When false or under reduced motion, the settled state renders.
loop boolean false Replay after a pause. Stops once toggled.

Source 1 file

Ported from Beautiful UI, MIT. Notices.