Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
zhanghandong avatar

Makepad 2.0 Widgets

  • 44 installs
  • 745 repo stars
  • Updated April 7, 2026
  • zhanghandong/makepad-skills

Helps with ai & agent building tasks during AI-assisted development.

About

makepad-2.0-widgets is a Claude Code skill for ai & agent building. It helps solo builders move faster with AI-assisted coding.

  • makepad-2.0-widgets
  • AI & Agent Building
  • AI-coding skill

Makepad 2.0 Widgets by the numbers

  • 44 all-time installs (skills.sh)
  • +1 installs in the week ending Jul 28, 2026 (Skillselion tracking)
  • Ranked #7,794 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
  • Data as of Jul 28, 2026 (Skillselion catalog sync)
npx skills add https://github.com/zhanghandong/makepad-skills --skill makepad-2.0-widgets

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs44
repo stars745
Last updatedApril 7, 2026
Repositoryzhanghandong/makepad-skills

What it does

Helps with ai & agent building tasks during AI-assisted development.

Files

SKILL.mdMarkdownGitHub ↗

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: 1. Read the relevant reference file(s) listed above 2. Incorporate reference content into the answer

---

Widget Categories Quick Reference

Containers (Layout)

WidgetDescriptionKey Properties
ViewBasic container (transparent)width, height, flow, spacing, padding, align
SolidViewView with solid background+ show_bg: true, draw_bg.color
RoundedViewView with rounded corners+ draw_bg.border_radius
RoundedAllViewAll corners same radius+ border_radius shorthand
GradientXViewHorizontal gradient bg+ draw_bg colors
GradientYViewVertical gradient bg+ draw_bg colors
ScrollXViewHorizontal scrollingscroll property
ScrollYViewVertical scrollingscroll property
ScrollXYViewBoth-axis scrollingscroll property

Text Widgets

WidgetDescriptionKey Properties
LabelSingle/multi-line texttext, draw_text.color, draw_text.text_style.font_size
H1 - H4Heading levelstext (pre-styled)
PParagraph texttext
TextInputEditable text fieldtext, empty_text, password, read_only, numeric_only
MarkdownMarkdown rendererbody
HtmlHTML rendererbody
LinkLabelClickable link texttext, url

Buttons

WidgetDescriptionKey Properties
ButtonStandard buttontext
ButtonFlatFlat style buttontext
ButtonFlatterMinimal buttontext

Toggles

WidgetDescriptionKey Properties
CheckBoxCheck boxtext, active
ToggleToggle switchtext, active
RadioButtonRadio buttontext, active

Input Widgets

WidgetDescriptionKey Properties
SliderHorizontal slidermin, max, step, default, precision
DropDownDropdown selectlabels: ["a", "b", "c"]

Media

WidgetDescriptionKey Properties
ImageImage displaysource, fit (Stretch/Horizontal/Vertical/Smallest/Biggest/Size)
SvgExternal SVG file rendererdraw_svg.svg (crate_resource/http_resource), animating, draw_svg.color
IconSVG icon (tinted)draw_icon.svg, draw_icon.color, icon_walk
VectorInline vector graphicsviewbox, Path{d: "..."}
LoadingSpinnerLoading indicatorcolor, rotation_speed
MapViewMap widgetcenter_lon, center_lat, zoom (MUST use fixed height!)

Layout Helpers

WidgetDescriptionUsage
HrHorizontal ruleDivider line
VrVertical ruleVertical divider
FillerFlexible spacePush siblings apart (use between Fit siblings only!)
SplitterResizable splitaxis: Horizontal/Vertical, a/b children
FoldHeaderCollapsible sectionheader + body children

Lists

WidgetDescriptionUsage
PortalListVirtualized listFor large lists (100+ items), only renders visible items
FlatListSimple listFor small lists, renders all items

Navigation

WidgetDescriptionControl
ModalModal dialog.open(cx) / .close(cx) from Rust
TooltipTooltip popupHover-triggered
PopupNotificationToast notificationTimed display
SlidePanelSliding panelslide_from
ExpandablePanelExpandable areaopen/close
PageFlipPage switcheractive_page: page_name
StackNavigationStack navpush/pop pages

Dock System

WidgetDescription
DockTab container system
DockSplitterDock split panels
DockTabsTab bar
DockTabIndividual tab

---

Critical Rules

1. height: Fit on Containers

// WRONG - View defaults to 0px height
View{ flow: Down Label{text: "Invisible"} }

// CORRECT
View{ height: Fit flow: Down Label{text: "Visible"} }

2. new_batch for Colored Containers with Text

// WRONG - text behind background
RoundedView{ draw_bg.color: #333 Label{text: "Invisible"} }

// CORRECT
RoundedView{ new_batch: true draw_bg.color: #333 Label{text: "Visible"} }

3. Named Children with :=

// Named (addressable, overridable)
title := Label{text: "Hello"}

// Static (not addressable)
Label{text: "Hello"}

4. Label Default Color is White

// Default text is white (#fff) - set color for light backgrounds
Label{text: "Dark text" draw_text.color: #333}

5. MapView MUST Have Fixed Height

// WRONG
MapView{ width: Fill height: Fill }

// CORRECT
View{ new_batch: true width: Fill height: 400
    MapView{ width: Fill height: 400 center_lat: 40.7 center_lon: -73.9 zoom: 14.0 }
}

6. Label Does NOT Support Animator

// WRONG (silently ignored)
Label{ animator: Animator{...} }

// CORRECT - wrap in View
View{ animator: Animator{...} Label{text: "Animated"} }

---

Common Widget Patterns

Card

RoundedView{
    width: Fill height: Fit
    padding: 16
    new_batch: true
    draw_bg.color: #2a2a3d
    draw_bg.border_radius: 8.0
    flow: Down spacing: 8
    title := Label{text: "Title" draw_text.color: #fff draw_text.text_style.font_size: 16}
    body := Label{text: "Content" draw_text.color: #aaa}
}

Form Input

View{
    width: Fill height: Fit
    flow: Down spacing: 4
    Label{text: "Email" draw_text.color: #aaa draw_text.text_style.font_size: 11}
    email_input := TextInput{
        width: Fill height: 36
        empty_text: "Enter email..."
    }
}

Scrollable List

ScrollYView{
    width: Fill height: Fill
    flow: Down spacing: 4
    new_batch: true
    on_render: || {
        for i, item in items {
            ItemTemplate{label.text: item.name}
        }
    }
}

---

Best Practices

1. Use `height: Fit` on every container unless you want Fill or fixed pixels 2. Use `new_batch: true` on any View with background color + text children 3. Use `:=` for children you need to reference or override 4. Use theme colors (theme.color_*) instead of hardcoded colors 5. Use `PortalList` for large lists (virtualizes rendering) 6. Use `ScrollYView` for scrollable content areas 7. Use `RoundedView` for cards and containers (has border_radius)

Related skills

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.