Skip to content

Meetings Table

Recent meetings glass table: title with gradient video icon and platform, date, mono duration, participant avatar stack and a recap status pill (ready, processing, private).

glass/ui/meetings-table
Open ↗

Source

import { Sparkles, Video } from "lucide-react";
import { cn } from "@/lib/utils";

export interface MeetingsTableRow {
  id: string;
  title: string;
  date: string;
  duration: string;
  platform: "Zoom" | "Meet" | "Teams" | "Huddle";
  participants: string[];
  status: "Recap ready" | "Processing" | "Private";
}

export interface MeetingsTableProps {
  caption?: string;
  rows?: MeetingsTableRow[];
  className?: string;
}

const GLASS = "da-stroke bg-da-surface backdrop-blur-da backdrop-saturate-150";
const TONES = ["from-da-primary to-da-accent", "from-da-accent to-da-success", "from-da-danger to-da-primary", "from-da-warning to-da-danger"];
const STATUS = {
  "Recap ready": "bg-da-success/15 text-da-success",
  Processing: "bg-da-primary/15 text-da-primary",
  Private: "bg-da-muted text-da-muted-fg",
} as const;

const DEFAULT_ROWS: MeetingsTableRow[] = [
  {
    id: "m1",
    title: "Q4 roadmap sync",
    date: "Today, 10:00",
    duration: "32 min",
    platform: "Meet",
    participants: ["Amara Diallo", "Leo Park", "Sofia Rossi", "Noah Klein"],
    status: "Recap ready",
  },
  {
    id: "m2",
    title: "Customer call — Parcel",
    date: "Today, 14:30",
    duration: "48 min",
    platform: "Zoom",
    participants: ["Leo Park", "Priya Raman"],
    status: "Processing",
  },
  {
    id: "m3",
    title: "1:1 Amara / Jin",
    date: "Yesterday, 16:00",
    duration: "25 min",
    platform: "Huddle",
    participants: ["Amara Diallo", "Jin Park"],
    status: "Private",
  },
  {
    id: "m4",
    title: "Design critique",
    date: "Yesterday, 11:00",
    duration: "45 min",
    platform: "Teams",
    participants: ["Sofia Rossi", "Jin Park", "Noah Klein"],
    status: "Recap ready",
  },
];

/** Recent meetings as a glass table: title with platform icon, date, duration, participant avatars and recap status pill; scrolls on mobile. */
export function MeetingsTable({ caption = "Recent meetings", rows = DEFAULT_ROWS, className }: MeetingsTableProps) {
  return (
    <div className={cn("overflow-hidden rounded-da-lg shadow-da-md", GLASS, className)}>
      <div className="overflow-x-auto" tabIndex={0} role="region" aria-label={`${caption} (scrollable)`}>
        <table className="w-full min-w-[640px] text-sm">
          <caption className="px-5 pt-4 pb-3 text-left font-da-display text-base font-semibold">{caption}</caption>
          <thead className="text-xs text-da-muted-fg">
            <tr className="border-y border-da-border">
              {["Meeting", "When", "Length", "People", "Recap"].map((h) => (
                <th key={h} scope="col" className="px-5 py-2.5 text-left font-medium">
                  {h}
                </th>
              ))}
            </tr>
          </thead>
          <tbody className="divide-y divide-da-border">
            {rows.map((r) => (
              <tr key={r.id} className="da-transition hover:bg-da-surface-2">
                <th scope="row" className="px-5 py-3 text-left font-medium">
                  <span className="flex items-center gap-3">
                    <span className="grid size-8 place-items-center rounded-da-sm bg-gradient-to-br from-da-primary/20 to-da-accent/20">
                      <Video aria-hidden className="size-4 text-da-primary" />
                    </span>
                    <span>
                      {r.title}
                      <span className="block text-xs font-normal text-da-muted-fg">{r.platform}</span>
                    </span>
                  </span>
                </th>
                <td className="px-5 py-3 whitespace-nowrap text-da-muted-fg">{r.date}</td>
                <td className="px-5 py-3 font-da-mono text-xs whitespace-nowrap">{r.duration}</td>
                <td className="px-5 py-3">
                  <span className="flex -space-x-1.5" title={r.participants.join(", ")}>
                    <span className="sr-only">{r.participants.join(", ")}</span>
                    {r.participants.map((p, i) => (
                      <span
                        key={p}
                        aria-hidden
                        className={cn(
                          "grid size-7 place-items-center rounded-full bg-gradient-to-br text-[10px] font-semibold text-da-primary-fg ring-2 ring-da-bg",
                          TONES[i % TONES.length],
                        )}
                      >
                        {p
                          .split(" ")
                          .map((w) => w[0])
                          .join("")}
                      </span>
                    ))}
                  </span>
                </td>
                <td className="px-5 py-3">
                  <span
                    className={cn("inline-flex items-center gap-1 rounded-da-pill px-2.5 py-0.5 text-xs font-semibold whitespace-nowrap", STATUS[r.status])}
                  >
                    {r.status === "Recap ready" && <Sparkles aria-hidden className="size-3" />}
                    {r.status}
                  </span>
                </td>
              </tr>
            ))}
          </tbody>
        </table>
      </div>
    </div>
  );
}

export default MeetingsTable;

modules/glass/ui/meetings-table/index.tsx

Props

PropTypeDefaultDescription
captionstring—Caption.
rows{ id, title, date, duration, platform, participants, status }[]—Data.
classNamestring—Classes.

Other table variants in Glass

Table in other art directions

Data Table

Typed generic table with a yellow caption bar + toolbar slot, ruled rows, sortable columns (asc → desc → none), custom cell renderers, mobile column hiding, empty state and optional row click.

BrutalistTable

Expandable Table

Table with expandable rows: a ruled chevron square per row reveals a detail row underneath; the open row floods yellow. Single or multiple open rows.

BrutalistTable

Leaderboard Table

Ranked list with ink header, colored podium squares for the top 3, proportional background bars behind each row, rank-change chips (▲/▼) and big tabular values. Sorts by value automatically.

BrutalistTable

Simple Table

Server-safe static table: uppercase caption, ink header row with column rules, zebra rows, right-aligned mono numeric columns and an optional yellow totals footer.

BrutalistTable

Data Table

Typed generic table with hairline rows, sortable headers, optional row selection (select-all with indeterminate state) and a floating bulk-action bar. Custom cells, mobile column hiding, empty state.

MinimalTable

Grouped Table

Services table grouped by team: collapsible tinted group rows with service count and alert subtotal, then rows with status dot, mono service name, owner, alerts and MTTA.

MinimalTable

Paginated Table

Audit-log table with client-side pagination: page-size select, “1–10 of 47” range, numbered pages with ellipsis and prev/next; mono timestamps and IPs, horizontal scroll on mobile.

MinimalTable

Uptime Table

Status-page uptime table: one row per service with 30 daily bars colored by threshold (≥ 99.99 %, ≥ 99 %, below), a current-status dot, the 30-day average and a legend.

MinimalTable

Changelog Table

Release log laid out as a table: mono version + ISO date column, a square type tag (New in signal color, Improved outlined, Fixed gray) and dash-listed notes; hairline rows.

Mono CleanTable

Data Table

Analytics table in pure typography: mono headers that sort (↑/↓ glyph, aria-sort), hairline rows, tabular numbers, inline hairline bars for share of views, and an ink total row.

Mono CleanTable

Projects Table

Studio project index (the classic portfolio list): large titles with client, discipline and year in mono columns; each row is one link that inverts to ink on hover with an ↗.

Mono CleanTable

Sites Table

Sites dashboard table: name + domain link, dot status in mono, template, updated time and a “…” Radix dropdown (open, duplicate, archive); hairline rows.

Mono CleanTable

Approvals Table

Bill approval queue: vendor + requester, category, mono amount and inline Approve / Reject buttons that turn the row into a decided state (with Undo); pending count in the header.

Neo CorporateTable

Data Table

Customer data table: sortable headers (aria-sort), row checkboxes with select-all (indeterminate), bulk-action bar when rows are selected, mono amounts and pagination.

Neo CorporateTable

Invoice Table

Receivables table with status pills, days-late aging text, mono amounts, a totals footer and a per-row Radix dropdown (view, send reminder, duplicate, void).

Neo CorporateTable

Ledger Table

General-ledger table grouped by date: journal ref and memo, GL account, debit/credit columns in mono, credits indented, and balanced totals row with a “Balanced” check.

Neo CorporateTable

Actions Table

Reduction plan table: round checkboxes mark actions done (row softens), owner and due date, mono savings, and a progress header showing tonnes secured toward the target.

Organic SoftTable

Emissions Table

Emissions by category: rounded cream table with scope leaf chips, inline sage share bars behind the tonnes, mono figures, colored year-over-year change and a total row.

Organic SoftTable

Monthly Table

Month × scope heat table: each cell tinted by intensity along a sand→sage→forest scale with mono values; row totals and a legend; readable without color.

Organic SoftTable

Supplier Table

Supplier engagement table: filter pills by status, arch avatars, share of footprint, status pill and 3-dot data quality meter, with a per-row “Nudge” pill that turns into “Sent”.

Organic SoftTable

Activity Table

Activity log table: kind icon in a pastel circle, emoji avatar and sentence (“Ana completed …”), board chip and relative time; rows highlight softly on hover.

Soft FlatTable

Simple Table

Plain friendly data table in a rounded white card: soft header well, roomy rows, gentle zebra and right-aligned numbers; generic columns and rows props.

Soft FlatTable

Task Table

“My tasks” table where each row is a soft rounded strip: round done checkbox, title (struck when done), pastel board chip, owner initial avatar and due chip (red when overdue).

Soft FlatTable

Workload Table

Team workload heat table: a row per person (emoji + name), one rounded cell per weekday tinted mint → butter → peach by number of tasks, with a legend.

Soft FlatTable