We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Arize-ai/phoenix'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
StopPropagation.tsx•612 B
import { PropsWithChildren } from "react";
/**
* A component that stops the propagation of events.
*
* This is useful for preventing events from bubbling up to the parent component.
* Such as when buttons are nested, like inside of a DisclosureTrigger.
*/
export function StopPropagation({ children }: PropsWithChildren) {
return (
<div
style={{ display: "contents" }}
onClick={(e) => e.stopPropagation()}
onKeyDown={(e) => e.stopPropagation()}
onMouseDown={(e) => e.stopPropagation()}
onPointerDown={(e) => e.stopPropagation()}
>
{children}
</div>
);
}