Componenteditors0.95 KB gzipZero dependencies

Webhook List

Webhook list with URL, event chips, test button and remove.

Preview

Live Preview
Open ↗

Installation

Tokens guide →

Add to your project via CLI (zero dependencies, code you own):

npx bigbullui add webhook-list

Or install the full npm package:

npm install bigbullui

Usage

tsx3 lines
import { WebhookList } from "@/components/ui/webhook-list"; <WebhookList />

Source code

webhook-list.tsx + 1 helper

Zero 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

PropTypeDescription
webhooksWebhook[]Configures webhooks. (Default: [])
onTest(id: string) => voidCallback invoked on test.
onRemove(id: string) => voidCallback invoked on remove.