Cost attribution row
Operator-grade table row for cost attribution. Same shape works whether the subject is an agent, a mission, a tool, a customer, or a project. Carries token spend, dollar spend, share of total, and a period-over-period delta.
Included in the single kansho full pack. Components are not offered as separate installs.
Attribution table — May 2026 to date
Narrow container reflow
Each row carries its own @container, so below ~30rem the share bar and delta fold under the name (Vitaly 221) with no consumer cooperation. Drag the handle to widen.Included components
This page is the canonical destination for these components. All ship in the single Kansho pack.
Cost attribution row
components/control-plane/cost-attribution-row.tsxComponent documentation
Cost attribution row
components/control-plane/cost-attribution-row.tsxPurpose
Shows one cost attribution bucket with tokens, spend, share, and period delta.
Appropriate use
Use in spend breakdowns where each row may open a deeper cost view.
Example
components/control-plane/cost-attribution-row.tsx has a representative live example in the "Attribution table — May 2026 to date" section on /components/cost-attribution.
States
Kinds are agent, mission, tool, customer, and project; detail, initials, total, delta, and row interaction are optional.
API and props
CostAttributionRow accepts a CostAttributionEntry plus total, onClick, and className; the entry carries id, label, detail, kind, tokens, cost, share, and delta.
Dependencies
Direct imports are React, Lucide icons, AgentDot, number formatting, InteractiveContainer, and cn.
Accessibility
Label, tokens, cost, share, and positive/negative/no-change delta are textual; interactive rows use the shared keyboard container.
Limitations
It does not aggregate costs, calculate shares or deltas, clamp numeric ranges, sort rows, or choose currency.
Source
Source: components/control-plane/cost-attribution-row.tsx.
Full pack
components/control-plane/cost-attribution-row.tsx is documented at /components/cost-attribution and installs only through the single Kansho full pack; no individual component install is offered.