Skip to main content
Glama
tooltip-icon-button.tsx1.06 kB
"use client"; import { forwardRef } from "react"; import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@repo/design/shadcn/tooltip"; import { Button, ButtonProps } from "@repo/design/shadcn/button"; import { cn } from "@repo/design/lib/utils"; export type TooltipIconButtonProps = ButtonProps & { tooltip: string; side?: "top" | "bottom" | "left" | "right"; }; export const TooltipIconButton = forwardRef<HTMLButtonElement, TooltipIconButtonProps>( ({ children, tooltip, side = "bottom", className, ...rest }, ref) => { return ( <TooltipProvider> <Tooltip> <TooltipTrigger asChild> <Button variant="ghost" size="icon" {...rest} className={cn("size-6 p-1", className)} ref={ref}> {children} <span className="sr-only">{tooltip}</span> </Button> </TooltipTrigger> <TooltipContent side={side}>{tooltip}</TooltipContent> </Tooltip> </TooltipProvider> ); } ); TooltipIconButton.displayName = "TooltipIconButton";

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/madarco/ragrabbit'

If you have feedback or need assistance with the MCP directory API, please join our Discord server