mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
e9e6fbdd85
Co-authored-by: Max Korp <maxkorp@8bytealchemy.com> Co-authored-by: Santiago Cubino <scubino@litebox.ai> Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
58 lines
1.9 KiB
TypeScript
58 lines
1.9 KiB
TypeScript
"use client";
|
|
|
|
import { useRouter } from "next/navigation";
|
|
import { ChangeEvent } from "react";
|
|
import ChevronDownIcon from "@/components/ui/icons/chevron";
|
|
|
|
export function QuickstartDropdown() {
|
|
const router = useRouter();
|
|
|
|
const options = [
|
|
{ label: "Direct to LLM", url: "/direct-to-llm/guides/quickstart" },
|
|
{ label: "LangGraph", url: "/langgraph/quickstart" },
|
|
{
|
|
label: "Microsoft Agent Framework",
|
|
url: "/microsoft-agent-framework/quickstart",
|
|
},
|
|
{ label: "Mastra", url: "/mastra/quickstart" },
|
|
{ label: "LlamaIndex", url: "/llamaindex/quickstart" },
|
|
{ label: "Agno", url: "/agno/quickstart" },
|
|
{ label: "CrewAI Flows", url: "/crewai-flows/quickstart/crewai" },
|
|
{ label: "CrewAI Crews", url: "/crewai-crews/quickstart/crewai" },
|
|
{ label: "AG2", url: "/ag2/quickstart" },
|
|
{ label: "Pydantic AI", url: "/pydantic-ai/quickstart" },
|
|
{ label: "ADK", url: "/adk/quickstart" },
|
|
{ label: "A2A", url: "/a2a/quickstart" },
|
|
];
|
|
|
|
const handleSelectChange = (event: ChangeEvent<HTMLSelectElement>) => {
|
|
const selectedUrl = event.target.value;
|
|
if (selectedUrl) {
|
|
router.push(selectedUrl);
|
|
}
|
|
};
|
|
|
|
return (
|
|
<div className="relative w-full">
|
|
<select
|
|
onChange={handleSelectChange}
|
|
className="
|
|
text-[#010507] font-medium dark:text-white text-sm p-3 pl-4 pr-10 transition-all duration-100 rounded-lg cursor-pointer w-full bg-[#0105070D] dark:bg-[#FFFFFF1A] font-spline appearance-none"
|
|
defaultValue=""
|
|
>
|
|
<option value="" disabled>
|
|
CHOOSE INTEGRATION
|
|
</option>
|
|
{options.map((option) => (
|
|
<option key={option.url} value={option.url}>
|
|
{option.label}
|
|
</option>
|
|
))}
|
|
</select>
|
|
<ChevronDownIcon
|
|
className="pointer-events-none absolute right-3 top-1/2 -translate-y-1/2 h-4 w-4 text-[#010507] dark:text-white"
|
|
/>
|
|
</div>
|
|
);
|
|
}
|