TidalUI

Webhook manager preview

Configure event endpoints and inspect delivery results with explicit test and retry actions.

pro · Blocks · composite

When to use

Alternatives

Configure components.json and the @tidal-pro namespace before installing Pro components.

Installation

npx shadcn@latest add @tidal-pro/webhook-manager

Import components/ui/tidal.css, components/ui/webhook-manager.css. Wrap installed components in tidal-scope.

Preview

Webhook manager component preview

Open interactive preview

Minimal example

import"./components/ui/tidal.css";
import"./components/ui/webhook-manager.css";
import{TidalWebhookManager}from"./components/ui/webhook-manager";
export default(p:Parameters<typeof TidalWebhookManager>[0])=><div className="tidal-scope"><TidalWebhookManager {...p}/></div>;

API and props

TidalWebhookManager.endpoints (required)
ReadonlyArray<TidalWebhookEndpoint>

Required endpoints value accepted by this exported component.

TidalWebhookManager.title (required)
ReactNode

Required title value accepted by this exported component.

TidalWebhookManager.createButtonProps
ButtonProps | undefined

Optional create button props value accepted by this exported component.

TidalWebhookManager.createButtonRef
Ref<HTMLButtonElement> | undefined

Optional create button ref value accepted by this exported component.

TidalWebhookManager.description
ReactNode

Optional description value accepted by this exported component.

TidalWebhookManager.editor
ReactNode

Optional editor value accepted by this exported component.

TidalWebhookManager.emptyContent
ReactNode

Optional empty content value accepted by this exported component.

TidalWebhookManager.headingLevel
"h2" | "h3" | "h4" | "h5" | "h6" | undefined

Optional heading level value accepted by this exported component.

TidalWebhookManager.labels
Partial<Record<"pending" | "paused" | "failed" | "create" | "events" | "enabled" | "enableEndpoint" | "edit" | "test" | "testing" | "retry" | "retrying" | "signingConfigured" | "signingMissing" | "noEvents" | "deliveries" | "noDeliveries" | "delivered", string>> | undefined

Optional labels value accepted by this exported component.

TidalWebhookManager.onCreateRequest
((event: MouseEvent<HTMLButtonElement>) => void) | undefined

Callback invoked when the create request interaction is proposed.

TidalWebhookManager.onDeliveriesOpenChange
((endpoint: TidalWebhookEndpoint, open: boolean, event: MouseEvent<HTMLElement>) => void) | undefined

Callback invoked when the deliveries open change interaction is proposed.

TidalWebhookManager.onEditRequest
((endpoint: TidalWebhookEndpoint, event: MouseEvent<HTMLButtonElement>) => void) | undefined

Callback invoked when the edit request interaction is proposed.

TidalWebhookManager.onEnabledChange
((endpoint: TidalWebhookEndpoint, enabled: boolean) => void) | undefined

Callback invoked when the enabled change interaction is proposed.

TidalWebhookManager.onRetryRequest
((endpoint: TidalWebhookEndpoint, delivery: TidalWebhookDelivery, event: MouseEvent<HTMLButtonElement>) => void) | undefined

Callback invoked when the retry request interaction is proposed.

TidalWebhookManager.onTestRequest
((endpoint: TidalWebhookEndpoint, event: MouseEvent<HTMLButtonElement>) => void) | undefined

Callback invoked when the test request interaction is proposed.

TidalWebhookManager.pendingDeliveryId
string | undefined

Optional pending delivery id value accepted by this exported component.

TidalWebhookManager.pendingEndpointId
string | undefined

Optional pending endpoint id value accepted by this exported component.

TidalWebhookEndpointForm.eventOptions (required)
ReadonlyArray<{ value: string; label: string; disabled?: boolean; }>

Required event options value accepted by this exported component.

TidalWebhookEndpointForm.nameValue (required)
string

Required name value value accepted by this exported component.

TidalWebhookEndpointForm.onValueChange (required)
(value: { name: string; url: string; events: readonly string[]; }) => void

Callback invoked when the value change interaction is proposed.

TidalWebhookEndpointForm.selectedEvents (required)
ReadonlyArray<string>

Required selected events value accepted by this exported component.

TidalWebhookEndpointForm.urlValue (required)
string

Required url value value accepted by this exported component.

TidalWebhookEndpointForm.busy
boolean | undefined

Optional busy value accepted by this exported component.

TidalWebhookEndpointForm.error
ReactNode

Optional error value accepted by this exported component.

TidalWebhookEndpointForm.labels
Partial<Record<"name" | "url" | "cancel" | "events" | "save", string>> | undefined

Optional labels value accepted by this exported component.

TidalWebhookEndpointForm.nameInputRef
Ref<HTMLInputElement> | undefined

Optional name input ref value accepted by this exported component.

TidalWebhookEndpointForm.onCancel
(() => void) | undefined

Callback invoked when the cancel interaction is proposed.

Complete usage

Full example, stylesheet imports, API and accessibility documentation

Gotchas