Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

iced-rs

FreeNo executable scriptsNot checked

Load whenever building or debugging an Iced UI.

vanillagreencomby vanillagreencom★ 93 GitHub stars

About this skill

Iced 0.14

Workflow

  1. Classify the surface with Surface Selection.
  2. Read the canonical example in examples/.
    • Never generate 0.14 code from memory.
  3. Read the guide for that surface.
    • For animated layered UI, read references/guide-animated-layout.md first.
  4. When debugging, check the guide’s failure modes and API notes.
    • For animation or rendering, read the diagnostic checklist.
    • Check event capture, layout invalidation, and the 0.14 event signature.

Bundled resources

references/: API refs and guides

  • Choose guides and references from the index.
  • Look up signatures and feature gates through the Iced 0.14 API page.

Bundled Iced 0.14.0 examples

Need Read first
Custom Widget impl examples/custom_widget/src/main.rs
GPU shader pipeline examples/custom_shader/ (full dir)
Mesh / vector geometry widget examples/geometry/src/main.rs
Canvas 2D drawing examples/bezier_tool, examples/clock, examples/color_palette
Canvas animation examples/solar_system, examples/the_matrix, examples/game_of_life
Arc/ring animation examples/loading_spinners, examples/arc
Modal dialog examples/modal/src/main.rs (stack + opaque)
Toast/notification overlay examples/toast/src/main.rs
Zoom-on-hover with clipped drawing examples/loupe/src/main.rs
Styled components examples/styling/
pane_grid layout examples/pane_grid/
Multi-window examples/multi_window/
WebSocket subscription examples/websocket/
Text editing examples/editor/

iced_wgpu/ and external fallbacks

For shader work, read the renderer source in iced_wgpu/src/.

The bundled iced_wgpu/ and examples/ come from Iced 0.14.0.

  • Read the bundled source to match the example’s API.
  • To run an example, use the upstream workspace at that revision. The skill omits the workspace manifest.

The snapshot's signatures are the authority.

  • For discovery beyond it, run ctx7 docs /websites/iced_rs "<query>".
  • Then check each signature against https://docs.rs/iced/0.14.0/iced/ or the tag's source, since lookups can return master APIs.
  • Never copy code from upstream master.

Breaking changes from Iced 0.13

Implementation rules

Widget tree consistency

  • Keep the wrapper in the widget tree as interaction state changes.
  • Attach the handler only when the interaction is enabled.
// WRONG: conditional wrapping changes tree shape
if dragging { mouse_area(label).into() } else { label.into() }

// RIGHT
let mut area = mouse_area(label);
if enable {
    area = area.on_press(msg);
}
area

view()

  • Keep view() free of side effects, redraw requests, and caches that depend on how often it runs.
  • Change app state in update().
  • Keep persistent widget interaction state in Tree.

Redraw vs rebuild

A redraw request on its own uses the existing widget tree.

  • Keep widget-driven motion in widget::Tree state.
  • Use messages to update app-driven motion.

See Redraw vs rebuild.

Overlay state isolation

Overlay layers (stack children beyond the base) must not affect base-layer widget structure. Never change base-layer construction based on overlay presence.

The one exception is a float popover pushed after its trigger in a column that holds only the trigger, so no child follows the float. See references/widget-float.md § Anchoring to a trigger.

Overlay starvation

Stacked mouse_area(...).interaction(...) layers can block underlying hover/move handlers even without opaque(...).

  • Set Interaction::Grabbing on the real drag target.
  • Reserve opaque(...) for true capture zones.

Hover stability

  • Hover sensors must not wrap content whose size changes during the animation they trigger.
  • Use a stable outer hitbox. See references/guide-custom-widgets.md § "Stable hover hit regions."

Scroll state initialization

Scrollable::on_scroll reports changes to the scroll viewport and can publish during redraw processing.

  • Use Sensor::on_show to observe initial size.
  • Use Sensor::on_resize for subsequent size changes.

Single message per interaction

  • One widget interaction produces one message.
  • Composite actions (tab press becoming a drag) use a state machine in update().
  • When mouse_area handles semantics while button provides visual feedback, exactly one layer publishes: mouse_area owns the semantics and button stays visual-only.

button.on_press fires on mouse-up; mouse_area.on_press fires on mouse-down. Use mouse_area.on_press for drag initi

Full SKILL.md on GitHub

Install iced-rs in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

Bundled files

README.mdexamples/README.mdexamples/arc/Cargo.tomlexamples/arc/README.mdexamples/arc/src/main.rsexamples/bezier_tool/Cargo.tomlexamples/bezier_tool/README.mdexamples/bezier_tool/src/main.rsexamples/changelog/Cargo.tomlexamples/changelog/src/changelog.rsexamples/changelog/src/icon.rsexamples/changelog/src/main.rsexamples/checkbox/Cargo.tomlexamples/checkbox/README.mdexamples/checkbox/fonts/icons.ttfexamples/checkbox/src/main.rsexamples/clock/Cargo.tomlexamples/clock/README.mdexamples/clock/src/main.rsexamples/color_palette/Cargo.tomlexamples/color_palette/README.mdexamples/color_palette/screenshot.pngexamples/color_palette/src/main.rsexamples/combo_box/Cargo.tomlexamples/combo_box/README.mdexamples/combo_box/combobox.gifexamples/combo_box/src/main.rsexamples/counter/Cargo.tomlexamples/counter/README.mdexamples/counter/index.htmlexamples/counter/src/main.rsexamples/custom_quad/Cargo.tomlexamples/custom_quad/src/main.rsexamples/custom_shader/Cargo.tomlexamples/custom_shader/src/main.rsexamples/custom_shader/src/scene.rsexamples/custom_shader/src/scene/camera.rsexamples/custom_shader/src/scene/pipeline.rsexamples/custom_shader/src/scene/pipeline/buffer.rsexamples/custom_shader/src/scene/pipeline/cube.rs

FAQ

What does the iced-rs skill do?

Load whenever building or debugging an Iced UI.

How do I install the iced-rs skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the iced-rs skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare iced-rs with