ZUI

Search documentation

Find a page or a heading.

AI Provider Picker

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.

tsx

Installation

bash

Usage

tsx

With no entries, the picker shows its sample providers. Every card is a button that calls onSelect with its entry's provider key:

tsx

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:

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, a string: the key AiProviderIcon resolves, such as openai
  • name, a string: the card's title
  • description, a string: the text under the title, clamped to two lines
  • meta, an optional string: the muted footer note, such as 12 models; omitted, the card has no footer