Skip to content
  1. Docs
  2. enzUI framework
  3. Developers

Examples

The runnable examples in the enzUI repository and how to start them.

The enzui repository (v0.3.0-alpha.1) ships two runnable examples under crates/enzui-widgets/examples/:

ExamplePurposeCommand
App (examples/app.rs)Complete application wiring: a notes workspace with sidebar, editable title and body, System/Light/Dark appearance controls and an enzUI window framecargo run --locked --example app
Gallery (examples/gallery/main.rs)Interactive browser for the full widget library and its variantscargo run --locked --example gallery --features enzui-widgets/emoji-picker

The gallery accepts environment variables for jumping straight to specific pages:

  • ENZUI_GALLERY_PAGE=Input — open a specific page directly
  • ENZUI_GALLERY_LIGHT=1 — open in the light theme
  • ENZUI_GALLERY_ONLY=enz_slider,enz_toggle — render only the named specimens

Use ICED_BACKEND=tiny-skia to run either example with the software renderer instead of wgpu. See every pictured widget in the Widget catalog.