NEOLearn

UI examples

The engine's UI examples: what each one shows, whether it runs in a browser and the command that runs it.

Updated October 20, 2026

On this page

Nodes and layout, text, images, buttons, scrolling, focus, widgets and UI rendering. There are 66 examples on this page. For the concepts behind them, see UI.

Run any of them from the engine core's workspace (the folder of the engine source that holds the neo crate's Cargo.toml); see Run an example.

Examples#

ExampleWhat it showsWebRun
Anchor LayoutShows an 'anchor layout' style of ui layoutYescargo run --example anchor_layout
BordersDemonstrates how to create a node with a borderYescargo run --example borders
Box ShadowDemonstrates how to create a node with a shadowYescargo run --example box_shadow --features neo_feathers
ButtonIllustrates creating and updating a buttonYescargo run --example button
CSS GridAn example for CSS Grid layoutYescargo run --example grid
Directional NavigationDemonstration of automatic directional navigation based on UI element positionsYescargo run --example directional_navigation
Directional Navigation OverridesDemonstration of automatic directional navigation between UI elements with manual overridesYescargo run --example directional_navigation_overrides
Display and VisibilityDemonstrates how Display and Visibility work in the UI.Yescargo run --example display_and_visibility --features neo_feathers
Drag to ScrollThis example tests scale factor, dragging and scrollingYescargo run --example drag_to_scroll
Editable Text FilterDemonstrates an 8-character hex input using EditableTextFilterYescargo run --example editable_text_filter
Feathers CounterSimple counter using feathersYescargo run --example feathers_counter --features neo_feathers
Feathers Number InputFeathers Number Input OptionsYescargo run --example feathers_number_input --features neo_feathers
Feathers WidgetsGallery of Feathers WidgetsYescargo run --example feathers_gallery --features neo_feathers
Fixed NodeDemonstrates how to use FixedNode to lay out a UI node as a root nodeYescargo run --example fixed_node
Flex LayoutDemonstrates how the AlignItems and JustifyContent properties can be composed to layout nodes and position textYescargo run --example flex_layout
Font Atlas DebugIllustrates how FontAtlases are populated (used to optimize text rendering internally)Yescargo run --example font_atlas_debug
Font QueriesDemonstrates font queryingYescargo run --example font_query
Font VariationsDemonstrates how to use OpenType font variations.Yescargo run --example font_variations
Font WeightsDemonstrates how to use font weights.Yescargo run --example font_weights
Generic Font FamiliesDemonstrates how to use generic font familiesYescargo run --example generic_font_families --features system_font_discovery
Ghost NodesDemonstrates the use of Ghost Nodes to skip entities in the UI layout hierarchyYescargo run --example ghost_nodes --features ghost_nodes
GradientsAn example demonstrating gradientsYescargo run --example gradients
Headless TabsDemonstrates controlled and self-updating headless tab listsYescargo run --example headless_tabs
Headless TreeDemonstrates the headless tree view with lazy population and keyboard navigationYescargo run --example headless_tree
Image NodeDemonstrates how to create an image nodeYescargo run --example image_node
Image Node ResizingDemonstrates how to resize an image nodeYescargo run --example image_node_resizing
IME SupportDemonstrates IME (Input Method Editor) support for text inputYescargo run --example ime_support --features system_font_discovery
Inline ImagesDemonstrates how to display images inline with textYescargo run --example inline_image
Letter SpacingDemonstrates the letter spacing featureYescargo run --example letter_spacing
Multiline Text InputDemonstrates a single multiline EditableText widgetYescargo run --example multiline_text_input
Multiple Text InputsDemonstrates multiple text inputsYescargo run --example multiple_text_inputs
OverflowSimple example demonstrating overflow behaviorYescargo run --example overflow
Overflow and Clipping DebugAn example to debug overflow and clipping behaviorYescargo run --example overflow_debug
Overflow Clip MarginSimple example demonstrating the OverflowClipMargin style propertyYescargo run --example overflow_clip_margin
Overflow TransformDemonstrates nested transformed UI clippingYescargo run --example overflow_transform
Relative Cursor PositionShowcases the RelativeCursorPosition componentYescargo run --example relative_cursor_position
Render UI to TextureAn example of rendering UI as a part of a 3D worldYescargo run --example render_ui_to_texture
ScrollDemonstrates scrolling UI containersYescargo run --example scroll
ScrollbarsDemonstrates use of core scrollbar in NEO UIYescargo run --example scrollbars
Size ConstraintsDemonstrates how the to use the size constraints to control the size of a UI node.Yescargo run --example size_constraints
Stacked GradientsAn example demonstrating stacked gradientsYescargo run --example stacked_gradients
Standard WidgetsDemonstrates use of core (headless) widgets in NEO UIYescargo run --example standard_widgets
Standard Widgets (w/Observers)Demonstrates use of core (headless) widgets in NEO UI, with ObserversYescargo run --example standard_widgets_observers
Strikethrough and UnderlineDemonstrates how to display text with strikethrough and underline.Yescargo run --example strikethrough_and_underline
System FontsDemonstrates how to use system fontsYescargo run --example system_fonts --features system_font_discovery
Tab NavigationDemonstration of Tab Navigation between UI elementsYescargo run --example tab_navigation
TextIllustrates creating and updating textYescargo run --example text
Text Background ColorsDemonstrates text background colorsYescargo run --example text_background_colors
Text DebugAn example for debugging text layoutYescargo run --example text_debug
Text InputDemonstrates a simple, unstyled text input widgetYescargo run --example text_input
Text Wrap DebugDemonstrates text wrappingYescargo run --example text_wrap_debug
Transparency UIDemonstrates transparency for UIYescargo run --example transparency_ui
UI Drag and DropDemonstrates dragging and dropping UI nodesYescargo run --example ui_drag_and_drop
UI MaterialDemonstrates creating and using custom Ui materialsYescargo run --example ui_material
UI ScalingIllustrates how to scale the UIYescargo run --example ui_scaling
UI Target CameraDemonstrates how to use UiTargetCamera and camera ordering.Yescargo run --example ui_target_camera
UI Texture AtlasIllustrates how to use TextureAtlases in UIYescargo run --example ui_texture_atlas
UI Texture Atlas SliceIllustrates how to use 9 Slicing for TextureAtlases in UIYescargo run --example ui_texture_atlas_slice
UI Texture SliceIllustrates how to use 9 Slicing in UIYescargo run --example ui_texture_slice
UI Texture Slice Flipping and TilingIllustrates how to flip and tile images with 9 Slicing in UIYescargo run --example ui_texture_slice_flip_and_tile
UI TransformAn example demonstrating how to translate, rotate and scale UI elements.Yescargo run --example ui_transform
UI Z-IndexDemonstrates how to control the relative depth (z-position) of UI elementsYescargo run --example z_index
Vertical SliderSimple example showing vertical and horizontal slider widgets with snap behavior and value labelsYescargo run --example vertical_slider
Viewport NodeDemonstrates how to create a viewport node with picking supportYescargo run --example viewport_node
Virtual KeyboardExample demonstrating a virtual keyboard widgetYescargo run --example virtual_keyboard --features neo_feathers
Window FallthroughIllustrates how to access winit::window::Window's hittest functionality.Nocargo run --example window_fallthrough

See also#