Browse GPUI examples demonstrating various features and patterns.
Educational examples to help you learn GPUI fundamentals.
This example demonstrates animation capabilities in GPUI: basic animations with with_animation, easing functions, transformations, repeating and duration controls.
This example demonstrates different async patterns in GPUI: cx.spawn, cx.background_spawn, task management, progress updates.
This example demonstrates three different approaches to creating interactive: use_state, renderonce, render.
This example demonstrates custom drawing in GPUI using: canvas element, pathbuilder, window.paint_* methods, interactive drawing.
This example demonstrates interactive patterns in GPUI: click events, hover states, mouse events, drag and drop.
This example demonstrates different layout approaches in GPUI: flexbox, grid, common patterns.
This example demonstrates different styling approaches in GPUI: interactive states, conditional styling, theming patterns.
This example demonstrates text capabilities in GPUI: text styling, text alignment, text decoration, text overflow, styled text, and more.
Performance benchmarks and stress tests.
Run any example with: cargo run --example [name]