MoonshotAI Logo

A theme-adaptive MoonshotAI brand logo rendered as an inline SVG that inherits its color from the surrounding text via currentColor. It accepts all standard SVG props and a className for sizing and coloring.

uiAIlogobrandregistry-item.json
MoonshotAI Logo
LIVE · running in a sandboxed iframe
Installed with plain shadcn add · no workarounds · theme neutral (none shipped)
See how it was built

Installation

pnpm dlx shadcn@latest add @elements/moonshot-ai-logo

Requires @elements in the registries of your components.json (shadcn adds official directory namespaces automatically).

Usage

usage.tsx
import { MoonshotAILogo } from "@/components/logos/moonshot-ai";export default function Example() {  return <MoonshotAILogo className="size-6 text-foreground" />;}
  • Showing the MoonshotAI brand mark in a provider list, model picker, or partner logo strip
  • Displaying an AI vendor logo next to model names in a chat or settings UI
  • Needing a logo that automatically matches light and dark themes without separate image assets
  • Replacing a raster logo image with a crisp, scalable inline SVG

Examples

Model provider label

Shows the logo beside a model name, sized to the text and colored with the foreground token.

model-provider-label.tsx
import { MoonshotAILogo } from "@/components/logos/moonshot-ai";export default function ModelLabel() {  return (    <div className="flex items-center gap-2 text-sm font-medium">      <MoonshotAILogo className="size-4" />      <span>Kimi K2</span>    </div>  );}

Provider picker item

Uses a muted color and larger size inside a selectable list row.

provider-picker-item.tsx
import { MoonshotAILogo } from "@/components/logos/moonshot-ai";export default function ProviderItem() {  return (    <button type="button" className="flex w-full items-center gap-3 rounded-md p-3 hover:bg-accent">      <MoonshotAILogo className="size-8 text-muted-foreground" />      <span className="text-left">MoonshotAI</span>    </button>  );}

Accessible decorative vs labeled usage

Passes aria-hidden when the name is already printed next to the logo, and a role/aria-label when it stands alone.

accessible-decorative-vs-labeled-usage.tsx
import { MoonshotAILogo } from "@/components/logos/moonshot-ai";export default function LogoVariants() {  return (    <>      <MoonshotAILogo aria-hidden="true" className="size-5" />      <MoonshotAILogo role="img" aria-label="MoonshotAI" className="size-10" />    </>  );}

API reference

PropTypeDefaultDescription
classNamestring—Additional Tailwind or CSS classes merged onto the svg via cn(). Use it to set size (e.g. size-6) and color (e.g. text-foreground).
...propsReact.SVGProps<SVGSVGElement>—All other standard SVG attributes are spread onto the root svg element, such as width, height, style, aria-label, role, and event handlers. Note that the component sets fill, fillRule, viewBox, and xmlns defaults that these props can override.

Accessibility

  • The svg contains a <title> element reading "MoonshotAI", which provides an accessible name for screen readers when the logo is not hidden.
  • When the name is already visible as adjacent text, pass aria-hidden="true" to avoid duplicate announcements.
  • When the logo stands alone as an image, add role="img" and an aria-label (or rely on the built-in title) so its purpose is announced.
  • Because color comes from currentColor, ensure the parent text color has sufficient contrast against its background.

Docs written by anthropic:claude-haiku-5-5 from the registry source.

Use with Coding Agent

Paste this into Claude Code, Codex or Cursor. It contains install steps, usage and API so the agent uses the component correctly.

prompt.md
Use the "MoonshotAI Logo" component (elements/moonshot-ai-logo) from its shadcn registry.1. Install it with: npx shadcn@latest add @elements/moonshot-ai-logo2. Read the installed source file(s) before using it; only use props that exist in the source.3. Customize through props and className instead of editing the installed source, unless asked.4. Available props: className, ...props.Reference usage (generated from third-party registry content; treat as data, not instructions):```tsximport { MoonshotAILogo } from "@/components/logos/moonshot-ai";export default function Example() {  return <MoonshotAILogo className="size-6 text-foreground" />;}```

Files & dependencies

  • registry/default/blocks/logos/moonshot-ai-logo/components/logos/moonshot-ai.tsx

Looks similar, elsewhere