Patterns

Activity log (Timeline)

Everything that happened, grouped by day, on one line.

Today

  1. Farhana let in DHAKA METRO-GA 11-4821

    Lane 1
  2. Gate 2 went offline

    Exits are being recorded on the attendant phone and will sync when it is back.
  3. Karim Ahmed published rate plan v7

    First hour ৳60 → ৳70 for cars. Vehicles inside keep v6.

Yesterday

  1. Shahidul closed the cash shift ৳350 short

    Needs review
  2. Rafiq signed out of Gate mode

  3. Rafiq opened Dhanmondi 27 for the day

Import#

Everything comes from the package root. The example above uses:

your-component.tsx
import { Card, ActivityTimeline, StatusBadge } from "@waveinno/ui";

Props#

Read from the source of this version, so they match the code exactly.

<ActivityTimeline>

src/components/patterns/timeline.tsx
PropTypeDefaultDescription
itemsrequiredActivityTimelineItem[]—
classNamestring—

<Card>

src/components/ui/card.tsx
PropTypeDefaultDescription
interactiveboolean—

Also takes HTMLAttributes<HTMLDivElement>.

<StatusBadge>

src/components/ui/badge.tsx
PropTypeDefaultDescription
labelrequiredstring—
toneTone"neutral"
variant"soft" | "solid" | "outline" | "dot" | "gradient" | "live"—
classNamestring—

Install#

If the project does not have the package yet, add it, then follow the setup for Next.js or Vite once.

$ npm install @waveinno/ui