Cards Pure CSS

Workflow card

A workflow summary that opens on hover, focus or tap: details grow in and the actions slide in one by one — pure CSS.

Real scenarios

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

The automations board

Hover, focus or tap a card: the details grow in and the actions slide in one by one. The running one breathes.

Nightly inventory sync

Pull orders, update stock, ping #ops.

Running
Trigger
Every day · 02:00
Last run
3 min ago
Success rate
۹۹٫۲٪

Weekly digest

An AI summary to every team lead, Friday 09:00.

Paused
Next send
Friday · 09:00

One that needs a human

expanded keeps a card open for good — the failed run stays laid out with its retry one click away.

Charge the cards at month end

The gateway rejected the last batch — 214 cards untouched.

Failed
Failing since
Sep 29 · 23:41
Error
HTTP 402 · insufficient_scope

Important props

Important props
Prop Type Default What it does
title / description string required / null The workflow’s name and its one-line description.
status / statusTone string null / success The status text and its tone: neutral | accent | success | warning | danger | info | gold.
live bool false Makes the status dot breathe — for running workflows.
members / meta array [] members: [['name' => …, 'src' => …]] with a grouped avatar; meta: ['Label' => 'value'] or a list of label/value.
slot:actions slot — The action buttons — run, edit, duplicate with wire:click.

Snippet

<x-nx::workflow-card title="همگام‌سازی شبانهٔ انبار" description="سفارش‌ها، موجودی، اعلان به تیم عملیات."
    status="در حال اجرا" live icon="cpu"
    :members="[['name' => 'کنجی ساتو'], ['name' => 'ماریا لوپز']]"
    :meta="['راه‌انداز' => 'هر روز · ۰۲:۰۰', 'آخرین اجرا' => '۳ دقیقه پیش']">
    <x-slot:actions>
        <x-nx::icon-button icon="play" label="اجرا" size="sm" wire:click="ping('گردش‌کار اجرا شد')" />
    </x-slot:actions>
</x-nx::workflow-card>