YuhuanStudioYunUIDocs
AI

Provider Icon

Icons for AI providers and models, resolved by id — ProviderIcon, ModelIcon, avatars, and type icons.

A family of icon components for AI providers and models. Logos are resolved by id from the bundled /icons assets, with sensible fallbacks. ProviderIcon/ModelIcon are flat by default; the *Avatar presets are always rounded tiles. ModelIcon resolves with a priority of model icon → developer icon → provider icon.

Import

import {
  ProviderIcon,
  ProviderAvatar,
  ModelIcon,
  ModelAvatar,
  ModelTypeIcon,
} from "@yuhuanowo/yunui/ai";

Provider icons

Pass a provider id (e.g. openai, anthropic, google, deepseek, mistral). Set rounded for an avatar tile, or use ProviderAvatar which is rounded by default.

Provider icons

openaianthropic
google
deepseek
mistral

Model icons

ModelIcon falls back through model → developer → provider. Here the developer id resolves a dedicated model-family logo. ModelAvatar is the rounded preset.

Model icons

claude
gemini
deepseek

Model type icons

ModelTypeIcon renders a colored glyph for a model's modality (chat, embedding, image_generation, tts, video, …), falling back to a generic bot icon.

Model type icons

ProviderIcon props

PropTypeDefaultDescription
classNamestring
iconUrlstring | nullCustom icon URL that overrides the built-in lookup (falls back on load error).
provider*stringProvider id; resolved to a built-in icon by name (e.g. "openai", "anthropic").
roundedbooleanfalseRender as a rounded avatar tile with a subtle background.
sizenumber20Icon size in pixels.

ProviderAvatar props

PropTypeDefaultDescription
classNamestring
provider*stringProvider id (resolved by name).
sizenumber32Icon size in pixels.

ModelIcon props

PropTypeDefaultDescription
classNamestring
developerstring | nullDeveloper/maker id, used to resolve a developer icon (second priority).
iconUrlstring | nullModel's own icon URL or `/icons/models/` filename (highest priority).
provider*stringProvider id, used as the final fallback icon.
roundedbooleanfalseRender as a rounded avatar tile with a subtle background.
sizenumber20Icon size in pixels.

ModelAvatar props

PropTypeDefaultDescription
classNamestring
developerstring | nullDeveloper id (second priority).
iconUrlstring | nullModel's own icon URL or filename (highest priority).
provider*stringProvider id (fallback).
sizenumber32Icon size in pixels.

ModelTypeIcon props

PropTypeDefaultDescription
sizenumber16
type*string

On this page