caliper uidocs

Webhook manager

Pro

Endpoints with their event subscriptions and recent deliveries.

Installs components/ui/webhook-manager.tsxDepends on @radix-ui/react-slot, lucide-reactMotion none in component source
pnpm dlx shadcn@latest add @caliper/webhook-manager

Endpoints

https://api.northwind.co/hooks/billing

invoice.paidinvoice.failed

Recent deliveries

  • 200142 ms · attempt 1 · 1 min ago
  • 200188 ms · attempt 1 · 2 hours ago

When to use #

Use it for

  • Developers set up and debug webhooks.
  • Failed deliveries can be retried.

Skip it when

  • There are no events to subscribe to.

Installation #

terminal
pnpm dlx shadcn@latest add @caliper/webhook-manager

Adds its 8 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.

Usage #

Import it from your copy of the source. The example behind the preview comes with the source.

example.tsx
import { WebhookManager } from "@/components/ui/webhook-manager"

The worked example comes with Pro

The 43-line example behind the preview opens here with a Pro or Team licence.

Checking your licence…

API reference #

WebhookManager

component
PropTypeDefaultDescription
endpoints *readonly Webhook[]—
events *readonly string[]—Every event type that can be subscribed to.
deliveries *readonly WebhookDelivery[]—
onAdd *(url: string, events: string[]) => void—
onToggle *(id: string, enabled: boolean) => void—
onDelete *(id: string) => void—
onTest *(id: string) => void | Promise<void>—
onRetry *(deliveryId: string) => void | Promise<void>—
classNamestring—

Accessibility #

It exposes status semantics, with aria-label, aria-expanded, aria-hidden, aria-invalid, aria-describedby and aria-pressed kept in step with state. Changes that matter are announced through a live region.

No custom key handling; Tab and the native activation keys do the work.

Motion #

It declares no animation in its component source. Any transition comes from its stylesheet, which uses the duration tokens that collapse to instant under prefers-reduced-motion.