Skip to main content
Glama

@arizeai/phoenix-mcp

Official
by Arize-ai
ToastRegion.stories.tsx2.5 kB
import { ComponentProps } from "react"; import { Meta, StoryFn } from "@storybook/react"; import { Button, Flex } from "@phoenix/components"; import { ToastRegion } from "@phoenix/components/toast/ToastRegion"; import { useNotify, useNotifyError, useNotifySuccess } from "@phoenix/contexts"; /** * ToastRegion manages the display of one or more queued toasts */ const meta: Meta = { title: "ToastRegion", component: ToastRegion, parameters: { layout: "centered", }, }; export default meta; const TriggerToasts = () => { const notify = useNotify(); const notifySuccess = useNotifySuccess(); const notifyError = useNotifyError(); return ( <Flex direction="column" gap="size-100"> <Button onPress={() => { notify({ title: "Default Toast", expireMs: null, }); }} > Default Toast </Button> <Button onPress={() => notifySuccess({ title: "Success Toast", message: "This is a success toast message.", expireMs: null, }) } > Success Toast </Button> <Button onPress={() => notifyError({ title: "Error Toast", message: "This is an error toast message.", expireMs: null, }) } > Error Toast </Button> <Button onPress={() => notifySuccess({ title: "Expiring Toast", message: "This toast will expire soon.", expireMs: 3000, }) } > Expiring Toast </Button> <Button onPress={() => notifySuccess({ title: "Action Toast", message: "This toast requires user action. It will close 1 second after interaction.", action: { // Manually close the toast later closeOnClick: false, text: "Interact", onClick: (close) => { // Handle interact action alert("Interact action triggered"); setTimeout(() => { close(); }, 1000); }, }, expireMs: null, }) } > Action Toast </Button> </Flex> ); }; export const Template: StoryFn<ComponentProps<typeof ToastRegion>> = () => ( <> <ToastRegion /> <TriggerToasts /> </> );

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