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 block shows its sample providers. Every card is a button that calls onSelect with its entry's provider key:

tsx

API reference

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.

AiProviderPickerEntry

One card's data.

AI_PROVIDER_PICKER_SAMPLE_ENTRIES

The sample entries the block shows with no entries: providers the @zeroxsolutions/icons brand set has a mark for, with names, blurbs and model counts only.