Alwurts

Model Selector

AI chats 47

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

    316
  • Tool Invocation

    Tool Invocation

    49
  • Chat Suggestions

    Chat Suggestions

    15
  • Status Edge

    Status Edge

    12
  • Tool Call

    Tool Call

    6
  • Editable Handle

    Editable Handle

    4
  • JSX Renderer

    JSX Renderer

More in AI chats

View all
  • AI Actions

    AI Actions

    361
  • Aquarium Prompt

    Aquarium Prompt

    168
  • AI Artifact

    AI Artifact

    17
  • AI Suggestions

    AI Suggestions

    22
  • AI Orb

    AI Orb

    216
  • Agent Chat

    Agent Chat

    21
  • Color Picker

    Color Picker

    229
  • AI Task List

    AI Task List

    198