Get started
Data display
Data entry
Feedback
Layout
Navigation
Features
Libraries
Packages
A responsive grid of AI provider cards, from the host's entries or a sample, that calls back with the provider key a card selects.
GPT reasoning and chat models for general-purpose assistance.
12 models
Claude models for long-context reasoning and tool use.
8 models
Multimodal Gemini models for text, image, and audio.
6 models
Cost-efficient chat and reasoning models.
4 models
Open-weight chat and embedding models.
7 models
Grok models for real-time-grounded chat.
3 models
tsx
1
2
3import type { ReactNode } from 'react';
import {Installation#
bash
pnpm dlx shadcn@latest add @zui/ai-provider-pickerUsage#
tsx
import { AiProviderPicker } from '@/components/data-entry/ai-provider-picker';With no entries, the picker shows its sample providers. Every card is a button that calls onSelect with its
entry's provider key:
tsx
<AiProviderPicker onSelect={(provider) => setProvider(provider)} />API reference#
AI_PROVIDER_PICKER_SAMPLE_ENTRIES#
The sample entries the picker shows with no entries: providers the @zeroxsolutions/icons brand set has a mark
for, with names, blurbs and model counts only.
AiProviderPicker#
Renders a div and takes every prop a div takes, plus:
| Prop | Type | Default |
|---|---|---|
entries | readonly AiProviderPickerEntry[] | AI_PROVIDER_PICKER_SAMPLE_ENTRIES |
onSelect | (provider: string) => void | - |
Its grid is one column, two from the sm breakpoint and three from lg;
a className merges with those classes, so lg:grid-cols-2 replaces only the three-column step.
Each AiProviderPickerEntry is one card's data:
provider, astring: the keyAiProviderIconresolves, such asopenainame, astring: the card's titledescription, astring: the text under the title, clamped to two linesmeta, an optionalstring: the muted footer note, such as12 models; omitted, the card has no footer