Skip to main content
Glama

@arizeai/phoenix-mcp

Official
by Arize-ai
ComboBox.stories.tsx3.62 kB
import { Meta, StoryFn } from "@storybook/react"; import { Flex, View } from "@phoenix/components"; import { ComboBox, ComboBoxItem, ComboBoxProps, } from "@phoenix/components/combobox/ComboBox"; const meta: Meta = { title: "ComboBox", component: ComboBox, argTypes: { label: { control: { type: "text", default: "Label", }, }, isDisabled: { type: "boolean", }, description: { type: "string", control: { type: "text", }, }, errorMessage: { type: "string", control: { type: "text", }, }, isInvalid: { control: { type: "boolean", }, }, isRequired: { control: { type: "boolean", }, }, menuTrigger: { options: ["manual", "input", "focus"], control: { type: "radio", }, }, }, parameters: { layout: "centered", }, }; export default meta; const Template: StoryFn<ComboBoxProps<object>> = (args) => ( <View width="300px"> <ComboBox {...args}> <ComboBoxItem textValue="Chocolate" key={"chocolate"}> Chocolate </ComboBoxItem> <ComboBoxItem textValue="Mint" key={"mint"}> Mint </ComboBoxItem> <ComboBoxItem textValue="Strawberry" key={"strawberry"}> Strawberry </ComboBoxItem> <ComboBoxItem textValue="Vanilla" key={"vanilla"}> Vanilla </ComboBoxItem> </ComboBox> </View> ); export const Default = Template.bind({}); Default.args = { label: "Ice cream flavor", }; export function Gallery() { return ( <Flex direction="column" gap="size-200"> <ComboBox label="Ice cream flavor"> <ComboBoxItem textValue="Chocolate" key={"chocolate"}> Chocolate </ComboBoxItem> <ComboBoxItem textValue="Mint" key={"mint"}> Mint </ComboBoxItem> <ComboBoxItem textValue="Strawberry" key={"strawberry"}> Strawberry </ComboBoxItem> <ComboBoxItem textValue="Vanilla" key={"vanilla"}> Vanilla </ComboBoxItem> </ComboBox> <ComboBox label="Ice cream flavor (Invalid)" isInvalid> <ComboBoxItem textValue="Chocolate" key={"chocolate"}> Chocolate </ComboBoxItem> <ComboBoxItem textValue="Mint" key={"mint"}> Mint </ComboBoxItem> <ComboBoxItem textValue="Strawberry" key={"strawberry"}> Strawberry </ComboBoxItem> <ComboBoxItem textValue="Vanilla" key={"vanilla"}> Vanilla </ComboBoxItem> </ComboBox> <ComboBox label="Ice cream flavor (Disabled)" isDisabled> <ComboBoxItem textValue="Chocolate" key={"chocolate"}> Chocolate </ComboBoxItem> <ComboBoxItem textValue="Mint" key={"mint"}> Mint </ComboBoxItem> <ComboBoxItem textValue="Strawberry" key={"strawberry"}> Strawberry </ComboBoxItem> <ComboBoxItem textValue="Vanilla" key={"vanilla"}> Vanilla </ComboBoxItem> </ComboBox> <ComboBox label="Ice cream flavor (L)" size="L"> <ComboBoxItem textValue="Chocolate" key={"chocolate"}> Chocolate </ComboBoxItem> <ComboBoxItem textValue="Mint" key={"mint"}> Mint </ComboBoxItem> <ComboBoxItem textValue="Strawberry" key={"strawberry"}> Strawberry </ComboBoxItem> <ComboBoxItem textValue="Vanilla" key={"vanilla"}> Vanilla </ComboBoxItem> </ComboBox> </Flex> ); }

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