Componenteditors0.95 KB gzipZero dependencies
Webhook List
Webhook list with URL, event chips, test button and remove.
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add webhook-listOr install the full npm package:
npm install bigbulluiUsage
tsx3 lines
import { WebhookList } from "@/components/ui/webhook-list"; <WebhookList />Source code
webhook-list.tsx + 1 helperZero third-party dependencies (2 local files shown in tabs below).
tsxwebhook-list.tsx63 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export interface Webhook { id: string; url: string; events: string[]; active?: boolean;} export interface WebhookListProps extends React.HTMLAttributes<HTMLDivElement> { webhooks: Webhook[]; onTest?: (id: string) => void; onRemove?: (id: string) => void;} Props
| Prop | Type | Description |
|---|---|---|
| webhooks | Webhook[] | Configures webhooks. (Default: []) |
| onTest | (id: string) => void | Callback invoked on test. |
| onRemove | (id: string) => void | Callback invoked on remove. |