Skip to main content
Glama

@arizeai/phoenix-mcp

Official
by Arize-ai
Button.tsx1.47 kB
import { forwardRef, ReactNode, Ref, useCallback } from "react"; import { Button as AriaButton, ButtonRenderProps } from "react-aria-components"; import { css } from "@emotion/react"; import { classNames } from "@phoenix/components"; import { useSize } from "@phoenix/contexts"; import { buttonCSS } from "./styles"; import { ButtonProps } from "./types"; function Button(props: ButtonProps, ref: Ref<HTMLButtonElement>) { const { size: propSize, variant = "default", leadingVisual, trailingVisual, children, css: propCSS, className, ...otherProps } = props; // If the toggle button is nested under a button group, use the size of the button group const contextSize = useSize(); const size = propSize || contextSize || "M"; const renderContent = useCallback( (props: ButtonRenderProps & { defaultChildren: ReactNode }) => { return ( <> {leadingVisual} {typeof children === "function" ? children(props) : children} {trailingVisual} </> ); }, [leadingVisual, trailingVisual, children] ); return ( <AriaButton {...otherProps} ref={ref} data-size={size} data-variant={variant} data-childless={!children} css={css(buttonCSS, propCSS)} className={classNames("react-aria-Button", className)} > {renderContent} </AriaButton> ); } const _Button = forwardRef(Button); export { _Button as Button };

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/Arize-ai/phoenix'

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