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本体の挙動とは独立した参考情報です。
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
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+。
- プロジェクトのセットアップ — CLI と依存関係をインストールします
- React コンポーネントの作成 — 標準の React コンポーネントを構築します
- コードコンポーネントの定義 —
declareComponentを使用して.webflow.tsxファイルを作成します - Webflow へのインポート —
npx webflow library shareを実行します - キャンバスでの使用 — サイトにライブラリをインストールし、コンポーネントをドラッグアンドドロップします
完全なエンドツーエンドのチュートリアルについては、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 種類の型が利用可能です (
Text、Rich Text、Text Node、Link、Image、Number、Boolean、Variant、Visibility、Slot、ID) - バンドル — Webpack がライブラリをバンドルします (最大 50MB)
重要な注意事項
- ファイル名は一意の識別子です。
.webflow.tsxファイルの名前を変更すると、新しいコンポーネントが作成され、古いコンポーネントは削除されます。サイト上の既存のインスタンスは機能しなくなります。 - React Server Components はサポートされていません。標準の React コンポーネントのみを使用してください。
- コンポーネントはクライアント側でデータをフェッチできますが、API は CORS をサポートしている必要があり、コンポーネントコードに API キーを埋め込むことは絶対に避けてください。
リファレンスドキュメント
各リファレンスファイルには、検索性を高めるために name、description、tags を含む YAML フロントマターが含まれています。関連するリファレンスを見つけるには、scripts/search_references.py の検索スクリプトを使用してください。
はじめに
- references/introduction.md: DevLink とコードコンポーネントの概要
- references/quick-start.md: セットアップからキャンバスまでのエンドツーエンドチュートリアル
- references/installation.md: CLI のインストール、
webflow.jsonの設定、認証
コンポーネントの構築
- references/define-code-component.md:
declareComponent、プロパティ、デコレータ、オプション - references/hooks.md:
declareComponentとuseWebflowContextフックのリファレンス - references/component-architecture.md: Shadow DOM、SSR、状態パターン、データフェッチ
- references/styling-components.md: Shadow DOM 内の CSS、サイト変数、タグセレクタ
- references/frameworks-and-libraries.md: Tailwind、styled-components、Emotion、Material UI、Shadcn/UI、Sass、Less
プロパティ型
- references/prop-types.md: すべてのプロパティ型とその使用法、戻り値、例
- references/prop-types/text.md: Text — 1 行のテキスト入力
- references/prop-types/rich-text.md: Rich Text — 書式設定された HTML コンテンツ
- references/prop-types/text-node.md: Text Node — キャンバス上で編集可能なテキスト
- references/prop-types/link.md: Link — ターゲットとプリロードを持つ URL
- references/prop-types/image.md: Image — アセットライブラリの画像選択
- references/prop-types/number.md: Number — 範囲コントロール付きの数値入力
- references/prop-types/boolean.md: Boolean — true/false の切り替え
- references/prop-types/variant.md: Variant — 事前定義されたオプションのドロップダウン
- references/prop-types/visibility.md: Visibility — 表示/非表示の切り替え
- references/prop-types/slot.md: Slot — 子コンポーネントの挿入
- references/prop-types/id.md: ID — HTML 要素識別子
バンドルと CLI
- references/cli.md: Webflow CLI コマンド、フラグ、CI/CD の使用法、トラブルシューティング
- references/bundling-and-import.md: Webpack バンドル、CLI インポート、CI/CD、デバッグ
ヘルプ
- 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+.
- Set up your project — Install the CLI and dependencies
- Create a React component — Build your standard React component
- Define the code component — Create a
.webflow.tsxfile withdeclareComponent - Import to Webflow — Run
npx webflow library share - 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: falsefor browser-only components declareComponent— Defines how your React component appears in Webflow. Seereferences/hooks.mdfor 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.tsxfile 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
- references/introduction.md: Overview of DevLink and code components
- references/quick-start.md: End-to-end tutorial from setup to canvas
- references/installation.md: CLI installation,
webflow.jsonconfig, authentication
Building Components
- references/define-code-component.md:
declareComponent, props, decorators, options - references/hooks.md:
declareComponentanduseWebflowContexthook reference - references/component-architecture.md: Shadow DOM, SSR, state patterns, data fetching
- references/styling-components.md: CSS in Shadow DOM, site variables, tag selectors
- references/frameworks-and-libraries.md: Tailwind, styled-components, Emotion, Material UI, Shadcn/UI, Sass, Less
Prop Types
- references/prop-types.md: All prop types with usage, return values, and examples
- references/prop-types/text.md: Text — single-line text input
- references/prop-types/rich-text.md: Rich Text — formatted HTML content
- references/prop-types/text-node.md: Text Node — on-canvas editable text
- references/prop-types/link.md: Link — URL with target and preload
- references/prop-types/image.md: Image — asset library image selection
- references/prop-types/number.md: Number — numeric input with range controls
- references/prop-types/boolean.md: Boolean — true/false toggle
- references/prop-types/variant.md: Variant — predefined option dropdown
- references/prop-types/visibility.md: Visibility — show/hide toggle
- references/prop-types/slot.md: Slot — child component insertion
- references/prop-types/id.md: ID — HTML element identifier
Bundling & CLI
- references/cli.md: Webflow CLI commands, flags, CI/CD usage, troubleshooting
- references/bundling-and-import.md: Webpack bundling, CLI import, CI/CD, debugging
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