nextui.dev
Home
Docs
Saved
Pricing
Components37
  • Forms & inputs7
  • Cards13
  • Buttons, badges & avatars8
  • Feedback & display6
  • Effects3
Agents23
  • Chat inputNew
  • Task checklistNew
  • ReasoningNew
  • Tool callNew
  • Model pickerNew
  • Tool approvalNew
  • AttachmentsNew
  • SourcesNew
  • Agent timelineNew
  • Context meterNew
  • Artifact panelNew
  • Message actionsNew
  • Streaming messageNew
  • Sub-agentsNew
  • Conversation shellNew
  • Agent questionNew
  • Voice agentNew
  • Voice orbNew
  • Thinking ring
  • Thinking waveNew
  • Thinking sparkle
  • Thinking bot
  • Prompt deckNew
Blocks20
  • Agent chatNew
  • Pill heroNew
  • Grid hero
  • Moodboard generatorNew
  • Waitlist heroNew
  • Intro bannerNew
  • Creative home heroNew
  • Chat heroNew
  • App shelfNew
  • Usage card
  • Design resultsNew
  • Pricing tiers
  • Dashboard home
  • The shiftNew
  • Launch perksNew
  • Testimonials
  • Quote
  • Team
  • Leads tableNew
  • Sign in
Pages13
  • ASCII workspace$49
  • Research agent$49
  • Support agent$49
  • Coding agent$49
  • CRM overviewNew
  • Marketing dashboardNew
  • Developer portfolio$49
  • Particle landing$49
  • Particle story$49
  • Statement converter$49
  • AI photo studio$49
  • Group card launch$49
  • Month-end storyNew
Themes9
  • Default
  • Ember
  • Ocean
  • Forest
  • Grape
  • Rose
  • Amber
  • Clay
  • Brutal
Upgrade
nextui.dev

nextui components, blocks and themes you install with one command.

Product

  • Components
  • Blocks
  • Themes
  • Pricing

Resources

  • Docs
  • Roadmap
  • GitHub

Legal

  • License
  • Privacy
  • Terms
  • Refunds

nextUI

[ 200 OK ] · nextUI

© 2026 NEXTUI • All rights reserved.

Upgrade
ComponentsAI & agentsModel picker
Copy promptCopy prompt

Customize

Starting effort when uncontrolled

Open the list above the button (composer at the bottom) or below it

Loop a scripted pick while on screen, for demos. Stops once the viewer clicks

JSX · copied with Copy prompt

<ModelPicker autoPlay side="bottom" />

Model pickerNew

A composer pill that switches models from a grouped list, with a reasoning-effort toggle for models that think.

Installation

Set your access key from API keys as NEXTUI_TOKEN in .env.local and add the @nextui namespace below to components.json once. Then every item installs by name. Each install counts as a copy on a free account.

$pnpm dlx shadcn@latest add @nextui/model-picker
1{
2 "registries": {
3 "@nextui": {
4 "url": "https://nextui.dev/r/{name}.json",
5 "headers": { "Authorization": "Bearer ${NEXTUI_TOKEN}" }
6 }
7 }
8}

Usage

1"use client";
2
3import { useState } from "react";
4import { useChat } from "@ai-sdk/react";
5import { ModelPicker, type ReasoningEffort } from "@/components/nextui/model-picker";
6
7export function Composer() {
8 const { sendMessage } = useChat();
9 const [model, setModel] = useState("anthropic/claude-sonnet-5.5");
10 const [effort, setEffort] = useState<ReasoningEffort>("medium");
11
12 return (
13 <form
14 onSubmit={(e) => {
15 e.preventDefault();
16 const text = new FormData(e.currentTarget).get("text") as string;
17 // Send the choice with each message; read it in your route handler.
18 sendMessage({ text }, { body: { model, effort } });
19 }}
20 >
21 <textarea name="text" />
22 <ModelPicker value={model} onValueChange={setModel} effort={effort} onEffortChange={setEffort} />
23 </form>
24 );
25}

API reference

Edit props live in the preview above, or see all 10 props
PropTypeDefaultDescription
modelsModelOption[]–Models to list: id, name, provider, description, tags, reasoning. Grouped by provider in the order given
valuestring–Controlled model id
defaultValuestring–Starting model id when uncontrolled; defaults to the second model
onValueChange(id: string) => void–Called when a model is picked
effort"low" | "medium" | "high"–Controlled reasoning effort; the toggle shows only for models with reasoning
defaultEffort"low" | "medium" | "high""medium"Starting effort when uncontrolled
onEffortChange(effort: ReasoningEffort) => void–Called when the effort changes
side"top" | "bottom""top"Open the list above the button (composer at the bottom) or below it
autoPlaybooleanfalseLoop a scripted pick while on screen, for demos. Stops once the viewer clicks
classNamestring–Extra classes on the wrapper

Related

All components

Chat inputNew

Task checklistNew

Free

ReasoningNew

Sign in to see the code

Preview it freely. A free account copies code and prompts a few times a day.

Sign in