Syed Hasnain

Model Picker

Component 4

About

Compact AI model menu with descriptions, plan badges, effort controls and additional models.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Model Picker to your project and fits it to your theme.

Code

How Model Picker is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import ModelPicker, { additionalModels, defaultModels } from '@/components/ui/model-picker'

export default function Demo() {
  return (
    <ModelPicker
      defaultValue="claude-sonnet-5"
      models={defaultModels}
      moreModels={additionalModels}
      footer="Choose a model from OpenAI or Anthropic. Availability depends on your provider."
    />
  )
}

Dependencies

More by Syed Hasnain

View all
  • Color Picker

    Color Picker

    91
  • Cost Meter

    Cost Meter

    31
  • Message Scroller

    Message Scroller

    26
  • Quota Banner

    Quota Banner

    21
  • Background Inbox

    Background Inbox

    20
  • Commit

    Commit

    18
  • Image Generation Loader

    Image Generation Loader

    17
  • Attachments

    Attachments

    17

Explore more

Part of Pasta UI — browse the full library on 21st.dev.