About
Here is Model Selector Component
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Model Selector to your project and fits it to your theme.
Code
How Model Selector is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
import { type Model, ModelSelector } from "@/components/ui/model-selector";
import { useState } from "react";
export default function ModelSelectorDemo() {
const [model, setModel] = useState<Model>("deepseek-chat");
return (
<div className="w-full max-w-sm">
<ModelSelector value={model} onChange={setModel} />
</div>
);
}















