Skip to main content
Glama

@arizeai/phoenix-mcp

Official
by Arize-ai
TimeRangeSelector.stories.tsx968 B
import { useState } from "react"; import { Meta, StoryFn } from "@storybook/react"; import { OpenTimeRangeWithKey, TimeRangeSelector, TimeRangeSelectorProps, } from "@phoenix/components"; import { timeRangeFormatter } from "@phoenix/utils/timeFormatUtils"; const meta: Meta = { title: "TimeRangeSelector", component: TimeRangeSelector, parameters: { layout: "centered", }, }; export default meta; const Template: StoryFn<TimeRangeSelectorProps> = (args) => { const [timeRange, setTimeRange] = useState<OpenTimeRangeWithKey>({ timeRangeKey: "7d", start: new Date("2024-01-15T10:00:00Z"), }); return ( <div> <span>{timeRangeFormatter(timeRange)}</span> <TimeRangeSelector {...args} value={timeRange} onChange={(value) => setTimeRange(value)} /> </div> ); }; /** * Used to specify a time range in a pop up or modal */ export const Default = Template.bind({}); Default.args = {};

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