Data JS behaviour

Timeline feed

A vertical activity stream: rows of icon + text + relative time that reveal one after another, stitched by a gradient connector; time may be a date (relative, in your language) or a plain label.

Real scenarios

The component as it is used in a product — not a specimen grid.

Order #1248, everything that happened

Rows reveal one after another, stitched by the gradient connector. The times are real Carbon dates rendered relative, in the page’s language — refresh tomorrow and “3 hours ago” will have aged.

  1. مریم رضایی confirmed the order #1248

  2. Invoice PDF generated

  3. Emma Carter picked the shipment route Istanbul → Ankara

  4. انبار ۲ handed the parcel to the courier

  5. سامان rejected the invoice #9801

  6. مریم رضایی resolved the rejection

  7. Fraud check passed

A release feed, time as a label

time may stay a plain string — version numbers here instead of dates, tones marking the mood of each entry.

  1. Kanban, calendar and chat join the block library

  2. Invoice gains a print stylesheet

  3. Fixed Persian digits in the analytics headline

  4. Two security hardenings

Important props

Important props
Prop Type Default What it does
items array [] Each row: ['id' => …, 'actor' => …, 'text' => …, 'target' => …, 'time' => date|timestamp|label, 'tone' => success|warning|info|danger|neutral]; without an actor, give it a meaningful icon.
label / locale string null The list’s accessible name and the relative times’ locale.

Snippet

<x-nx::timeline-feed label="جریان فعالیت سفارش" :items="[
    ['id' => 'a1', 'actor' => 'مریم رضایی', 'text' => 'سفارش را تأیید کرد', 'target' => '#۱۲۴۸', 'time' => now()->subMinutes(3), 'tone' => 'success'],
    ['id' => 'a2', 'icon' => 'upload', 'text' => 'پشتیبان‌گیری کامل شد', 'time' => now()->subHours(2), 'tone' => 'info'],
]" />