makepad-2-0-widgets
できること
このガイドでは、Makepad 2.0を使ってアプリの画面(インターフェース)を組み立てる方法を説明します。ボタン、テキスト入力欄、画像など、利用できる部品(ウィジェット)と、その使い方を紹介します。
使う場面
- ✓アプリの見た目やデザインを考えるとき。
- ✓ボタンやテキスト入力欄を追加したいとき。
- ✓画像やリストを表示する必要があるとき。
スキルのリンク
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/makepad-2-0-widgets/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“「保存」と書かれたクリックできるボタンを作るにはどうすればいいですか?”
毎週5つの新しいスキル。1分で読めます。
仕組み
Makepad 2.0には「ウィジェット」と呼ばれる部品が用意されています。レゴブロックのようなもので、それぞれに役割(文字を表示する、入力を受け付けるなど)があり、プロパティ(設定項目)を変えて見た目や動きを調整できます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
When to Use
- Use when this upstream workflow matches the user's stated goal.
- Use when the task requires the procedures documented in this skill.
Makepad 2.0 Widget Catalog Skill
Version: makepad-widgets (dev branch) | Last Updated: 2026-03-03
Overview
Makepad 2.0 provides a rich set of built-in widgets for building UIs. All widgets are defined in Splash syntax and registered via script_mod!.
Documentation
Refer to the local files for detailed documentation:
./references/widget-catalog.md- Complete widget list with properties./references/widget-advanced.md- Advanced patterns: PortalList, Dock, custom widgets, MapView
IMPORTANT: Documentation Completeness Check
Before answering questions, Claude MUST:
- Read the relevant reference file(s) listed above
- Incorporate reference content into the answer
Widget Categories Quick Reference
Containers (Layout)
| Widget | Description | Key Properties |
|---|---|---|
View |
Basic container (transparent) | width, height, flow, spacing, padding, align |
SolidView |
View with solid background | + show_bg: true, draw_bg.color |
RoundedView |
View with rounded corners | + draw_bg.border_radius |
RoundedAllView |
All corners same radius | + border_radius shorthand |
GradientXView |
Horizontal gradient bg | + draw_bg colors |
GradientYView |
Vertical gradient bg | + draw_bg colors |
ScrollXView |
Horizontal scrolling | scroll property |
ScrollYView |
Vertical scrolling | scroll property |
ScrollXYView |
Both-axis scrolling | scroll property |
Text Widgets
| Widget | Description | Key Properties |
|---|---|---|
Label |
Single/multi-line text | text, draw_text.color, draw_text.text_style.font_size |
H1 - H4 |
Heading levels | text (pre-styled) |
P |
Paragraph text | text |
TextInput |
Editable text field | text, empty_text, password, read_only, numeric_only |
Markdown |
Markdown renderer | body |
Html |
HTML renderer | body |
LinkLabel |
Clickable link text | text, url |
Buttons
| Widget | Description | Key Properties |
|---|---|---|
Button |
Standard button | text |
ButtonFlat |
Flat style button | text |
ButtonFlatter |
Minimal button | text |
Toggles
| Widget | Description | Key Properties |
|---|---|---|
CheckBox |
Check box | text, active |
Toggle |
Toggle switch | text, active |
RadioButton |
Radio button | text, active |
Input Widgets
| Widget | Description | Key Properties |
|---|---|---|
Slider |
Horizontal slider | min, max, step, default, precision |
DropDown |
Dropdown select | labels: ["a", "b", "c"] |
Media
| Widget | Description | Key Properties |
|---|---|---|
Image |
Image display | source, fit (Stretch/Horizontal/Vertical/Smallest/Biggest/Size) |
Svg |
External SVG file renderer | draw_svg.svg (crate_resource/http_resource), animating, draw_svg.color |
Icon |
SVG icon (tinted) | draw_icon.svg, draw_icon.color, icon_walk |
Vector |
Inline vector graphics | viewbox, Path{d: "..."} |
LoadingSpinner |
Loading indicator | color, rotation_speed |
MapView |
Map widget | center_lon, center_lat, zoom (MUST use fixed height!) |
Layout Helpers
| Widget | Description | Usage |
|---|---|---|
Hr |
Horizontal rule | Divider line |
Vr |
Vertical rule | Vertical divider |
Filler |
Flexible space | Push siblings apart (use between Fit siblings only!) |
Splitter |
Resizable split | axis: Horizontal/Vertical, a/b children |
FoldHeader |
Collapsible section | header + body children |
Lists
| Widget | Description | Usage |
|---|---|---|
PortalList |
Virtualized list | For large lists (100+ items), only renders visible items |
FlatList |
Simple list | For small lists, renders all items |
Navigation
| Widget | Description | Control |
|---|---|---|
Modal |
Modal dialog | .open(cx) / .close(cx) from Rust |
Tooltip |
Tooltip popup | Hover-triggered |
PopupNotification |
Toast notification | Timed display |
SlidePanel |
Sliding panel | slide_from |
ExpandablePanel |
Expandable area | open/close |
PageFlip |
Page switcher | active_page: page_name |
…
よくある質問
`View`と`SolidView`の違いは何ですか?
`View`は背景が透明な基本のコンテナです。`SolidView`は、背景に単色を設定できる`View`です。
色のついた背景の上に文字を表示するにはどうすればいいですか?
背景色のプロパティと一緒に`new_batch: true`を使うと、背景の上に文字が正しく描画されます。
スクロールできるリストを作るにはどうすればいいですか?
横方向のスクロールには`ScrollXView`、縦方向には`ScrollYView`、両方向には`ScrollXYView`を使います。
詳細
作者による元の説明
Makepad 2.0 guidance for widgets; use when building or debugging Makepad UI code.
人気
- GitHubのスター
- 48k
- ランキング
- #5143
- ライセンス
- MIT
- 更新日
- 2026/10/15
コメント
- …
このリポジトリの他のスキル
00-andruia-consultant
48kエージェントがAIプロジェクトの立ち上げや改善を支援します。コードを分析し、ツールを提案し、スペイン語で行動計画を作成します。
007
48kエージェントがセキュリティ監査と脅威モデリングを行えるようにします。攻撃や脆弱性からプロジェクトを守るのに役立ちます。
10-andruia-skill-smith
48kエージェントがAIツールの作成や改善を支援します。ツールの動作を定義し、ドキュメントを書き、構造を検証します。
20-andruia-niche-intelligence
48kエージェントが特定の業界に関する要約を作成できるようにします。信頼できる情報源を使って、プロジェクトの背景、ルール、利用パターン、リスクを把握するのに役立ちます。
似ているスキル
angular-developer
280kエージェントがAngularのコードを作成し、プロジェクト構成についてアドバイスできるようにします。新しいプロジェクトの開始、コード部品の作成、パフォーマンスやアクセシビリティの改善に役立ちます。
frontend-a11y
280kエージェントが Web インターフェースを誰にとっても使いやすくするよう支援します。スクリーンリーダーやキーボード操作に対応し、サイトやアプリが適切に動作するようにします。
frontend-patterns
280kエージェントがフロントエンド開発の最新パターンを適用できるようにします。React と Next.js において、パフォーマンスの最適化、状態管理、ベストプラクティスの遵守を行います。