Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

Migrate route_preview.tsx from Tremor to Ant Design

Ryan Crabbe7e50af922800
diff --git a/ui/litellm-dashboard/src/components/route_preview.tsx b/ui/litellm-dashboard/src/components/route_preview.tsx
index 483ab538871..2c616ad8670 100644
--- a/ui/litellm-dashboard/src/components/route_preview.tsx
+++ b/ui/litellm-dashboard/src/components/route_preview.tsx
@@ -1,6 +1,8 @@
import React from "react";
-import { Card, Title, Subtitle } from "@tremor/react";
+import { Card, Typography } from "antd";
import { RightOutlined, InfoCircleOutlined } from "@ant-design/icons";
+
+const { Title, Text } = Typography;
import { getProxyBaseUrl } from "./networking";
interface RoutePreviewProps {
@@ -23,8 +25,8 @@ const RoutePreview: React.FC<RoutePreviewProps> = ({ pathValue, targetValue, inc
return (
<Card className="p-5">
- <Title className="text-lg font-semibold text-gray-900 mb-2">Route Preview</Title>
- <Subtitle className="text-gray-600 mb-5">How your requests will be routed</Subtitle>
+ <Title level={5} className="text-lg font-semibold text-gray-900 mb-2">Route Preview</Title>
+ <Text type="secondary" className="text-gray-600 mb-5" style={{ display: "block" }}>How your requests will be routed</Text>
<div className="space-y-5">
{/* Basic routing */}