Skip to main content
Glama

@arizeai/phoenix-mcp

Official
by Arize-ai
Token.stories.tsx3.86 kB
import { Meta, StoryFn } from "@storybook/react"; import { Card, Flex, Icon, Icons, Token, type TokenProps, View, } from "@phoenix/components"; const meta: Meta = { title: "Token", component: Token, parameters: { layout: "centered", }, }; export default meta; const Template: StoryFn<TokenProps> = (args) => ( <Card title="Token"> <View width="600px" padding="size-200"> <Token {...args}>Example Token</Token> </View> </Card> ); export const Default: Meta<typeof Token> = { render: Template, args: { isDisabled: false, }, argTypes: {}, }; const InteractiveTemplate: StoryFn<TokenProps> = (args) => ( <Card title="Interactive Token"> <View width="600px" padding="size-200"> <Token {...args} onPress={() => alert("Token clicked!")}> Clickable Token </Token> </View> </Card> ); export const Interactive: Meta<typeof Token> = { render: InteractiveTemplate, args: { isDisabled: false, }, argTypes: {}, }; const RemovableTemplate: StoryFn<TokenProps> = (args) => ( <Card title="Removable Token"> <View width="600px" padding="size-200"> <Token {...args} onRemove={() => alert("Token removed!")}> Removable Token </Token> </View> </Card> ); export const Removable: Meta<typeof Token> = { render: RemovableTemplate, args: { isDisabled: false, }, argTypes: {}, }; const WithLeadingVisualTemplate: StoryFn<TokenProps> = (args) => ( <Card title="Token with Leading Visual"> <View width="600px" padding="size-200"> <Token {...args} leadingVisual={<Icon svg={<Icons.Info />} />}> With Leading Visual </Token> </View> </Card> ); export const WithLeadingVisual: Meta<typeof Token> = { render: WithLeadingVisualTemplate, args: { isDisabled: false, onPress: () => alert("Token clicked!"), }, argTypes: {}, }; const FullInteractiveTemplate: StoryFn<TokenProps> = (args) => ( <Card title="Full Interactive Token"> <View width="600px" padding="size-200"> <Token {...args} leadingVisual={<Icon svg={<Icons.Info />} />} onPress={() => alert("Token clicked!")} onRemove={() => alert("Token removed!")} > Interactive & Removable </Token> </View> </Card> ); export const FullInteractive: Meta<typeof Token> = { render: FullInteractiveTemplate, args: { isDisabled: false, }, argTypes: {}, }; const SizeTemplate: StoryFn<TokenProps> = (args) => ( <Card title="Token Size"> <View width="600px" padding="size-200"> <Flex gap="size-100" wrap> <Token {...args} size="S" color="var(--ac-global-color-primary)"> Small Token </Token> <Token {...args} size="M" color="var(--ac-global-color-primary)"> Medium Token </Token> <Token {...args} size="L" color="var(--ac-global-color-primary)"> Large Token </Token> </Flex> </View> </Card> ); export const Size: Meta<typeof Token> = { render: SizeTemplate, args: { isDisabled: false, }, }; const GroupTemplate: StoryFn<TokenProps> = (args) => ( <Card title="Token Group"> <View width="600px" padding="size-200"> <Flex gap="size-100" wrap> <Token {...args}>Default Token</Token> <Token {...args} color="var(--ac-global-color-primary)"> Primary Token </Token> <Token {...args} color="var(--ac-global-color-danger)"> Danger Token </Token> <Token {...args} color="var(--ac-global-color-success)"> Success Token </Token> </Flex> </View> </Card> ); export const Group: Meta<typeof Token> = { render: GroupTemplate, args: { isDisabled: false, onPress: () => alert("Token clicked!"), onRemove: () => alert("Token removed!"), }, };

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