Alwurts

Model Selector

AI chats 46

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

    313
  • Tool Invocation

    Tool Invocation

    49
  • Chat Suggestions

    Chat Suggestions

    15
  • Status Edge

    Status Edge

    11
  • Tool Call

    Tool Call

    6
  • Editable Handle

    Editable Handle

    4
  • JSX Renderer

    JSX Renderer

More in AI chats

View all
  • AI Actions

    AI Actions

    351
  • Aquarium Prompt

    Aquarium Prompt

    113
  • Agent Chat

    Agent Chat

    21
  • Message With Header And Delivery Status

    Message With Header And Delivery Status

    60
  • Research Report

    Research Report

    7
  • Tool Web Fetch

    Tool Web Fetch

    4
  • Color Picker

    Color Picker

    201
  • Suggestions

    Suggestions

    40