mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
9a6ee39d96
- Add package.json exports for v2/{express,hono,node} subpaths
- Add elysia devDependency and tsdown entry points
- Exclude bun integration tests from vitest config
- Update CI workflows to include runtime-servers test job
- Add runtime-server-adapter docs page
- Add changeset for the fetch-based runtime feature
60 lines
2.0 KiB
TypeScript
60 lines
2.0 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: "LangChain", 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: "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 dark:color-scheme-dark 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"
|
|
style={{ colorScheme: "auto" }}
|
|
defaultValue=""
|
|
>
|
|
<option value="" disabled>
|
|
CHOOSE INTEGRATION
|
|
</option>
|
|
{options.map((option) => (
|
|
<option
|
|
key={option.url}
|
|
value={option.url}
|
|
className="text-black dark:text-white bg-white dark:bg-neutral-800"
|
|
>
|
|
{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>
|
|
);
|
|
}
|