Skip to content
Viewership Inquire
Astro UI

Context Cards.

Retrieved knowledge chunks with sources, entering in sequence.

AgentComponentNo dependencies Beautiful UI, MIT

.md
All chunks 32
Brand voice rule 290 characters

Headlines stay under 60 characters, with no exclamation marks, before a draft goes to client review.

Weekly traffic row 1,250 characters

Q4 sessions by channel: organic +18%, paid search +6%, email -11%; pause ad groups under 40 clicks weekly.

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 ContextCards.astro

    Paste into src/components/viewership/context-cards/

  3. Use it

    Page.astro
    ---
    import ContextCards from "../components/viewership/context-cards/ContextCards.astro";
    ---
    
    <ContextCards />

Props 4

PropTypeDefaultDescription
chunks { title; chars: string | number; body; source; badge; tone?: "red" | "green" | "orange" | "accent"; href? }[] [] Retrieved chunks. A source chip with `href` is a link; otherwise a button that emits `vs-context-source`.
header string "All chunks" Header label and section name.
count string | number chunks.length Count beside the header.
autoplay boolean true Play entrance once in view. false shows the final state.

Source 1 file

Ported from Beautiful UI, MIT. Notices.