affectUI › Illustrations › Product scenes

Model Menu

A model picker – DeepSeek, GPT, Claude, Gemini and more with their marks, a pink band gliding to the picked one, its right edge and foot fading into the page.

Part of affectUI Pro. Install: npx shadcn@latest add https://www.affectui.com/r/model-menu.json · Import from @/components/ui/model-menu

When to use

  • Hero or feature section of an AI product that lets people pick their model – it shows the choice at a glance
  • Beside a headline or in a feature card – it fades into the page on the right and at the bottom, so it can sit at an edge
  • Launch posts and OG images – a still frame with playing={false} reads well small

When not to use

  • As the real model picker – it's a picture of one; nothing in it can be clicked. Use Model Picker for that
  • In tight spaces – it needs about 340 × 320px, and its fades want room around it

Usage

import { ModelMenu } from "@/components/ui/model-menu";

export function Hero() {
  return (
    <section className="relative">
      <h1>Every frontier model, one place</h1>
      <ModelMenu className="absolute right-0 top-24" />
    </section>
  );
}

Props

NameTypeDefaultDescription
modelsMenuModel[]The rows: name and logo (any node, about 16px) – DeepSeek, GPT, Claude Opus, Gemini, Mistral Large, Qwen and Llama by default
titlestring | null"Best models"The quiet header above the rows – null leaves it out
selectednumber1The picked row, where the band starts
playingbooleantrueThe band glides on to the next model now and then – false holds it on selected
holdnumber2200How long the band stays on a model, in ms
walknumber3How many rows from the top the band walks through – the lower ones sit in the fade
classNamestringExtra class on the root

Accessibility

  • Decorative: the whole illustration is hidden from screen readers and takes no clicks
  • With prefers-reduced-motion nothing moves: the band stays on the selected row

Responsive

  • Fixed size, about 340 × 320px with its fades – scale it with zoom or a transform for smaller screens
  • Dark mode built in: switches when an ancestor (usually <html>) has the class dark or data-theme="dark"

Requirements

  • React 19

Related

  • Inspect Agent Card – An agent card seen like a selection in a design tool – tilted back, with a blue frame, spacing numbers and a red guide walking through its rows
  • Inspect Composer – A chat composer seen like a selection in a design tool – tilted back, with a blue frame, spacing numbers and a red guide walking through its rows
  • Model Picker – The model menu of an AI chat – point at a model and its speed, quality and cost bars fill, switch on extended thinking and its effort unfolds, while the tray rolls the first-token time and price
  • Model Wheel – AI model names on a turning drum – the rows bend away at the edges and each model lands on a soft gray fill