Components
Registry
Components
- #3200https://api.acme.dev/webhooks/repost84msJul 30, 11:59:30 AM
{"ok":true} - #2503https://api.acme.dev/webhooks/repost1240msJul 30, 11:58:25 AM
upstream unavailable
- #1timeouthttps://api.acme.dev/webhooks/repost—Jul 30, 11:57:00 AM
"use client";
import { DeliveryAttemptsPanel } from "@/components/delivery-attempts-panel";Installation#
pnpm dlx shadcn@latest add @repost/delivery-attempts-panelInstalls this item, every component it depends on, and the npm packages listed below.
Usage#
This component is presentational: it renders what you pass it and calls back on
interaction. In a live dashboard the data comes from useDeliveryAttempts(deliveryId)
(@repost/portal-react), but any data of
the same shape works.
"use client";
import { DeliveryAttemptsPanel } from "@/components/delivery-attempts-panel";
import { fixtureAttempts } from "@/fixtures/webhook-fixtures";
export function DeliveryAttemptsPanelDemo() {
return <DeliveryAttemptsPanel attempts={fixtureAttempts()} />;
}
Props#
| Prop | Type | Description |
|---|---|---|
attempts | WebhookAttempt[] | Attempts, newest first. |
isLoading | boolean | Renders skeletons. |