YuhuanStudioYunUIDocs
AI

Model Manager Card

A dense admin model row rendered as a card — select, icon, name + ids, a 2-column spec grid, capabilities, and row actions; every admin-table column, top-to-bottom.

A dense admin "model row" rendered as a card. It carries every column a model-management table needs — a select control, an icon, the name with status badges, id chips, a 2-column labelled spec grid (provider, developer, type, status, context or resolution, max output, price in/out), capability badges, and row actions — laid out top-to-bottom so model management reads on any width instead of a wide scrolling table.

It is domain-agnostic: every value is a slot the consumer fills, so no app types, pricing, or i18n leak into the design system.

Import

import { ModelManagerCard } from "@yuhuanowo/yunui/ai";

Example

selectSlot and actions are slots; the example wires a stateful Checkbox into the select slot and renders icon buttons for the actions. fields is an array of { label, value, full? } (set full to span both grid columns).

ModelManagerCard

anthropic
Claude Opus 4.8
Provider
Anthropic
Type
Chat
Context
200K
Max output
128K
Status
Approved
Price (in / out)
$5 / $25 per M
Capabilities
ChatFunction CallingStreamingThinking

Anatomy

  • Top control barselectSlot (left) and actions (right). Keeps both off the content so the icon stays flush-left.
  • Identityicon · name + nameBadges (YAML / deprecated / suspended …) · ids chips.
  • Spec gridfields laid out in 2 columns; a field with full: true spans both.
  • Capabilities — an optional label and the capability badges.

A long, unbreakable model name wraps inside the card rather than widening the column.

Props

PropTypeDefaultDescription
actionsReactNodeRow actions (edit / enable / inspect / delete …) — sit at the right of the top control bar (no footer rule).
capabilities{ label?: ReactNode; value: ReactNode; }Capability badges + an optional label.
classNamestring
fieldsModelManagerField[]Labelled specs — provider, developer, type, status, context/resolution, max output, price, … — laid out in a 2-column grid.
iconReactNodeLeading model icon.
idsReactNodeId / alias chips rendered under the name.
name*ReactNodeModel display name (the card title).
nameBadgesReactNodeInline status badges next to the name (YAML, deprecated, inactive, suspended…).
selectedbooleanMark the row selected (a ring + tint).
selectSlotReactNodeRow-select control (a checkbox). Sits at the left of the top control bar.

On this page