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.

Installation

bash

The CLI writes components/data-display/model-info-card.tsx, installs Utils, and adds class-variance-authority.

Usage

tsx
tsx

Use it for the detail panel of one model, such as inside a Hover card's content. Compose the header and each section's heading row from Item parts.

Composition

text

API reference

ModelInfoCard

Takes every prop of React Native's View: a column of the header and the sections, 12px apart.

ModelInfoCardSection

Takes every prop of React Native's View: a titled section, its heading row over its detail lines, 6px apart.

ModelInfoCardIndicator

Takes every prop of React Native's View, plus:

The accent bar beside a section title, in one of the theme's chart colours, or the muted foreground. It is hidden from a screen reader, which reads the title beside it.

Differences from the web

  • The web's data-slot attributes are not set; a View takes no data attributes.