ActiveTask

Compact list of currently-running tasks with status dot, title, timestamp, and optional clear action. Compound: ActiveTask + ActiveTask.Item.

Preview

Usage

import { ActiveTask } from '@ramtt/ui'

<ActiveTask label="Active" onClear={() => clear()}>
  <ActiveTask.Item title="Power upload" timestamp="2m ago" status="active" />
  <ActiveTask.Item title="FTP test" timestamp="1h ago" status="paused" />
</ActiveTask>

Props

PropTypeDefaultDescription
labelstring'Active'Section header text
onClear() => voidWhen set, renders a clear button on the right
clearLabelstring'Clear active'Label for the clear button
children*ReactNodeActiveTask.Item children
classNamestringAdditional Tailwind classes