ZUI

Search documentation

Find a page or a heading.

Model Info Card

The detail panel for one model: an identity header composed from Item parts over titled sections.

tsx

Installation

bash

Usage

tsx
tsx

It is meant for the shipped HoverCardContent: compose the identity header from Item parts, then one ModelInfoCardSection per detail. Use it for a model's own info panel; for a provider's tile in a picker grid, use AI Provider Card instead.

Composition

text

API reference

ModelInfoCard

Renders a div and takes every prop a div takes. The identity header and every section stack in a vertical flex. It sets data-slot="model-info-card".

ModelInfoCardIndicator

Renders a span and takes every prop a span takes, plus:

The accent bar beside a section's title, in one of the theme's chart colours, or muted when no tone is given. It is hidden from assistive technology. It sets data-slot="model-info-card-indicator" and aria-hidden.

ModelInfoCardSection

Renders a div and takes every prop a div takes. A titled section inside a ModelInfoCard: an Item heading row (a ModelInfoCardIndicator in its ItemMedia, an ItemTitle, and an optional ItemActions value) over the detail lines. It sets data-slot="model-info-card-section".