Skip to main content

react-zmage-integration

Use when adding the react-zmage React image viewer to an existing React, Next.js, MDX, CMS, markdown, or rich text image surface.

ソース情報

リポジトリ
Caldis/react-zmage
ソースの最終更新活動
2026年5月18日 17:26
検出された SKILL.md の言語
英語
スター
945
フォーク
92

インストール方法

デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。

ソースファイルを確認

インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。

SKILL.md を表示中

SKILL.md
ソースの指示 · 読み取り専用プレビュー
name
react-zmage-integration
description
Use when adding the react-zmage React image viewer to an existing React, Next.js, MDX, CMS, markdown, or rich text image surface.
# react-zmage Integration ## When to use this skill Use this skill when a user wants fullscreen image preview, image zoom, a React lightbox alternative, CMS image preview, MDX image preview, or gallery browsing in a React app. Do not use this skill for unrelated image processing, server-side media transformation, account automation, OAuth setup, webhook setup, or MCP server work. react-zmage is a client-side React package. ## Read first Fetch https://zmage.caldis.me/llms.txt first. Use https://zmage.caldis.me/llms-full.txt when you need the full README and repository agent notes in one request. Install with: ```bash npm install react-zmage ``` Import the stylesheet once from the app-level style entry: ```ts import 'react-zmage/style.css' ``` Choose the smallest mode that matches the user's image surface: - Component mode for owned React image markup: `<Zmage src="..." alt="..." />`. - Wrapper mode for CMS, MDX, markdown, rich text, or generated HTML: `<Zmage.Wrapper>{children}</Zmage.Wrapper>`. - Imperative mode for buttons, commands, callbacks, or non-image events: `Zmage.browsing(options)`. Prefer omitted `preset` so it resolves to `auto`. Keep optional behavior props unset during a basic install unless the user asks for them or testing exposes a concrete need.
GitHubで見る