Alwurts

Model Selector

AI chats 42

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>
	);
}

Dependencies

More by Alwurts

View all
  • Chat Input

    Chat Input

    305
  • Tool Invocation

    Tool Invocation

    46
  • Chat Suggestions

    Chat Suggestions

    13
  • Status Edge

    Status Edge

    8
  • Tool Call

    Tool Call

    4
  • Editable Handle

    Editable Handle

    1
  • JSX Renderer

    JSX Renderer

More in AI chats

View all
  • AI Actions

    AI Actions

    324
  • Color Picker

    Color Picker

    96
  • Environment Variables

    Environment Variables

    12
  • Commit

    Commit

    19
  • AI Task List

    AI Task List

    161
  • Agent Chat

    Agent Chat

    18
  • Prompt with Model Picker

    Prompt with Model Picker

    2
  • Message Thread

    Message Thread

    41