jpskill.com
🛠️ 開発・MCP コミュニティ

webflow-code-components

DevLinkを通じてWebflowにReactコードコンポーネントを組み込み、プロパティ定義やスタイリング、Webpackでのバンドル、インポート時のトラブルシューティングを行うSkill。

📜 元の英語説明(参考)

Build, define, and import React code components into Webflow via DevLink. Use when creating Webflow code components, configuring declareComponent definitions, working with prop types, styling within Shadow DOM, bundling with Webpack, or troubleshooting DevLink imports.

🇯🇵 日本人クリエイター向け解説

一言でいうと

DevLinkを通じてWebflowにReactコードコンポーネントを組み込み、プロパティ定義やスタイリング、Webpackでのバンドル、インポート時のトラブルシューティングを行うSkill。

※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o webflow-code-components.zip https://jpskill.com/download/6544.zip && unzip -o webflow-code-components.zip && rm webflow-code-components.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/6544.zip -OutFile "$d\webflow-code-components.zip"; Expand-Archive "$d\webflow-code-components.zip" -DestinationPath $d -Force; ri "$d\webflow-code-components.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して webflow-code-components.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → webflow-code-components フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-17
取得日時
2026-05-17
同梱ファイル
1

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

Webflow Code Components

DevLink を使用して、React コードコンポーネントを構築、定義し、Webflow にインポートします。コードコンポーネントを使用すると、高度なインタラクティブな React コンポーネントをコードベースで開発し、共有ライブラリとして Webflow にデプロイして、キャンバス上で視覚的に構成できます。

クイックスタート

前提条件: Freelancer、Core、Growth、Agency、または Enterprise プランの Webflow Workspace (または CMS、Business、または Enterprise のサイト)。Node.js 20+ および npm 10+。

  1. プロジェクトのセットアップ — CLI と依存関係をインストールします
  2. React コンポーネントの作成 — 標準の React コンポーネントを構築します
  3. コードコンポーネントの定義declareComponent を使用して .webflow.tsx ファイルを作成します
  4. Webflow へのインポートnpx webflow library share を実行します
  5. キャンバスでの使用 — サイトにライブラリをインストールし、コンポーネントをドラッグアンドドロップします

完全なエンドツーエンドのチュートリアルについては、references/quick-start.md を参照してください。

主要な概念

  • Shadow DOM 分離 — スタイルと DOM はコンポーネントごとにサンドボックス化されます
  • 個別の React ルート — コンポーネント間で共有される React Context や状態はありません。URL パラメータ、ブラウザストレージ、Nano Stores、またはカスタムイベントを使用してください
  • デフォルトで SSR — サーバーレンダリングされた HTML はクライアントでハイドレートされます。ブラウザ専用コンポーネントの場合は ssr: false で無効にしてください
  • declareComponent — React コンポーネントが Webflow でどのように表示されるかを定義します。完全な API については references/hooks.md を参照してください
  • プロパティ型 — 11 種類の型が利用可能です (TextRich TextText NodeLinkImageNumberBooleanVariantVisibilitySlotID)
  • バンドル — Webpack がライブラリをバンドルします (最大 50MB)

重要な注意事項

  • ファイル名は一意の識別子です。 .webflow.tsx ファイルの名前を変更すると、新しいコンポーネントが作成され、古いコンポーネントは削除されます。サイト上の既存のインスタンスは機能しなくなります。
  • React Server Components はサポートされていません。標準の React コンポーネントのみを使用してください。
  • コンポーネントはクライアント側でデータをフェッチできますが、API は CORS をサポートしている必要があり、コンポーネントコードに API キーを埋め込むことは絶対に避けてください。

リファレンスドキュメント

各リファレンスファイルには、検索性を高めるために namedescriptiontags を含む YAML フロントマターが含まれています。関連するリファレンスを見つけるには、scripts/search_references.py の検索スクリプトを使用してください。

はじめに

コンポーネントの構築

プロパティ型

バンドルと CLI

ヘルプ

  • references/faq.md: よくある質問 — セットアップ、スタイリング、インポート、トラブルシューティング、パフォーマンス

リファレンスの検索

# メタデータ付きのすべてのリファレンスをリスト表示
python scripts/search_references.py --list

# タグで検索 (完全一致)
python scripts/search_references.py --tag <tag>

# キーワードで検索 (名前、説明、タグ、コンテンツ全体)
python scripts/search_references.py --search <query>

# プロパティ型のリファレンスのみを検索
python scripts/search_references.py --prop-types
python scripts/search_references.py --prop-types --tag <tag>
python scripts/search_references.py --prop-types --search <query>

スクリプト

  • scripts/search_references.py: タグ、キーワードでリファレンスファイルを検索したり、メタデータ付きのすべてをリスト表示したりします
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

Webflow Code Components

Build, define, and import React code components into Webflow using DevLink. Code components let you develop advanced, interactive React components in your codebase and deploy them to Webflow as shared libraries for visual composition on the canvas.

Quick Start

Prerequisite: Webflow Workspace on Freelancer, Core, Growth, Agency, or Enterprise plan (or a site on CMS, Business, or Enterprise). Node.js 20+ and npm 10+.

  1. Set up your project — Install the CLI and dependencies
  2. Create a React component — Build your standard React component
  3. Define the code component — Create a .webflow.tsx file with declareComponent
  4. Import to Webflow — Run npx webflow library share
  5. Use on canvas — Install the library on a site, then drag and drop components

See references/quick-start.md for a full end-to-end tutorial.

Key Concepts

  • Shadow DOM isolation — Styles and DOM are sandboxed per component
  • Separate React roots — No shared React Context or state between components. Use URL params, browser storage, Nano Stores, or custom events
  • SSR by default — Server-rendered HTML is hydrated on the client. Disable with ssr: false for browser-only components
  • declareComponent — Defines how your React component appears in Webflow. See references/hooks.md for the full API
  • Prop types — 11 types available (Text, Rich Text, Text Node, Link, Image, Number, Boolean, Variant, Visibility, Slot, ID)
  • Bundling — Webpack bundles your library (50MB max)

Important Notes

  • File names are unique identifiers. Renaming a .webflow.tsx file creates a new component and removes the old one — existing instances on sites will break.
  • React Server Components are not supported. Use standard React components only.
  • Components can fetch data client-side, but APIs must support CORS and you must never embed API keys in component code.

Reference Documentation

Each reference file includes YAML frontmatter with name, description, and tags for searchability. Use the search script in scripts/search_references.py to find relevant references.

Getting Started

Building Components

Prop Types

Bundling & CLI

Help

  • references/faq.md: Frequently asked questions — setup, styling, imports, troubleshooting, performance

Searching References

# List all references with metadata
python scripts/search_references.py --list

# Search by tag (exact match)
python scripts/search_references.py --tag <tag>

# Search by keyword (across name, description, tags, and content)
python scripts/search_references.py --search <query>

# Search only prop type references
python scripts/search_references.py --prop-types
python scripts/search_references.py --prop-types --tag <tag>
python scripts/search_references.py --prop-types --search <query>

Scripts

  • scripts/search_references.py: Search reference files by tag, keyword, or list all with metadata