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

    311
  • Tool Invocation

    Tool Invocation

    48
  • Chat Suggestions

    Chat Suggestions

    14
  • Status Edge

    Status Edge

    11
  • Tool Call

    Tool Call

    5
  • Editable Handle

    Editable Handle

    3
  • JSX Renderer

    JSX Renderer

More in AI chats

View all
  • AI Actions

    AI Actions

    349
  • Agent Chat

    Agent Chat

    19
  • Aquarium Prompt

    Aquarium Prompt

    97
  • Research Report

    Research Report

    6
  • Illos Knowledge Sources

    Illos Knowledge Sources

    52
  • Message With Header And Delivery Status

    Message With Header And Delivery Status

    57
  • Inline Citation

    Inline Citation

    10
  • Color Picker

    Color Picker

    191