examples/

directory
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2026 License: MIT

Directories

Path Synopsis
reactive
array-list command
array-list demonstrates reactive Array bindings on list widgets.
array-list demonstrates reactive Array bindings on list widgets.
array-select command
array-select demonstrates reactive Array bindings on selection widgets.
array-select demonstrates reactive Array bindings on selection widgets.
binding-gallery command
binding-gallery demonstrates every widget Bind* method in WillowUI.
binding-gallery demonstrates every widget Bind* method in WillowUI.
computed-chain command
Computed Chain - reactive demo.
Computed Chain - reactive demo.
conditional-watch command
Conditional Watch — reactive demo.
Conditional Watch — reactive demo.
counter command
Counter — minimal reactive example.
Counter — minimal reactive example.
watch-lifecycle command
Watch Lifecycle - reactive example.
Watch Lifecycle - reactive example.
templating
hotreload command
hotreload demonstrates WillowUI's hot reload feature: edit template.xml while the app is running and see the UI update live.
hotreload demonstrates WillowUI's hot reload feature: edit template.xml while the app is running and see the UI update live.
xml-basic command
xml-basic demonstrates WillowUI's XML template system: a controller that defines its UI via an embedded XML template with reactive bindings, event handlers, and the ui:show directive.
xml-basic demonstrates WillowUI's XML template system: a controller that defines its UI via an embedded XML template with reactive bindings, event handlers, and the ui:show directive.
xml-binary command
xml-binary demonstrates WillowUI's binary template format (.xmlui): the same demo as xml-basic but using a pre-compiled binary template loaded via go:embed and RegisterBinary instead of RegisterXML.
xml-binary demonstrates WillowUI's binary template format (.xmlui): the same demo as xml-basic but using a pre-compiled binary template loaded via go:embed and RegisterBinary instead of RegisterXML.
xml-forms command
xml-forms demonstrates WillowUI's XML template system with form input widgets: TextInput, TextArea, Toggle, Checkbox, Slider, NumberStepper, Select, OptionRotator, and Radio with RadioButton children.
xml-forms demonstrates WillowUI's XML template system with form input widgets: TextInput, TextArea, Toggle, Checkbox, Slider, NumberStepper, Select, OptionRotator, and Radio with RadioButton children.
xml-layout command
xml-layout demonstrates all WillowUI layout modes via a single XML template.
xml-layout demonstrates all WillowUI layout modes via a single XML template.
xml-reactive command
xml-reactive demonstrates every bind: attribute in WillowUI's XML template system.
xml-reactive demonstrates every bind: attribute in WillowUI's XML template system.
xml-variants command
xml-variants demonstrates custom Panel and Label variants defined in a theme JSON file and referenced by name in XML templates.
xml-variants demonstrates custom Panel and Label variants defined in a theme JSON file and referenced by name in XML templates.
theming
font-family command
Font-Family demonstrates loading a custom FontFamily from a .fontbundle and exercising all style variants: regular, bold, italic, bold+italic, multiple display sizes, and RichText with inline markup.
Font-Family demonstrates loading a custom FontFamily from a .fontbundle and exercising all style variants: regular, bold, italic, bold+italic, multiple display sizes, and RichText with inline markup.
macos command
Macos demonstrates a frameless OS window with custom macOS-style chrome built entirely from WillowUI widgets.
Macos demonstrates a frameless OS window with custom macOS-style chrome built entirely from WillowUI widgets.
nineslice command
Nine-slice demonstrates WillowUI nine-slice backgrounds.
Nine-slice demonstrates WillowUI nine-slice backgrounds.
sprite-icons command
Sprite-icons demonstrates WillowUI's theme-driven icon system.
Sprite-icons demonstrates WillowUI's theme-driven icon system.
theme-gallery command
Theme-Gallery demonstrates switching between WillowUI themes at runtime.
Theme-Gallery demonstrates switching between WillowUI themes at runtime.
windows command
Win10 demonstrates a frameless OS window with custom Windows 10-style chrome built entirely from WillowUI widgets.
Win10 demonstrates a frameless OS window with custom Windows 10-style chrome built entirely from WillowUI widgets.
widget-showcase
accordion command
button command
calendar command
checkbox command
color-picker command
data-table command
list command
masked-input command
menu-bar command
number-stepper command
option-rotator command
progress-bar command
radio command
scroll-panel command
select command
slider command
sortable-list command
stat-web command
tab-bar command
tag-bar command
text-area command
text-input command
tile-list command
time-picker command
toggle command
tooltip command
tree-list command
window command
widgets
accordion command
Accordion - collapsible section panels.
Accordion - collapsible section panels.
anchor-layout command
Anchor layout demonstrates pinning children to edges and corners of a parent container using LayoutAnchor.
Anchor layout demonstrates pinning children to edges and corners of a parent container using LayoutAnchor.
animated-image command
AnimatedImage widget demo.
AnimatedImage widget demo.
badge command
Badge demonstrates the WillowUI Badge widget: pill-shaped count/label overlays and dot-mode status indicators with per-variant color presets.
Badge demonstrates the WillowUI Badge widget: pill-shaped count/label overlays and dot-mode status indicators with per-variant color presets.
buttons command
Buttons demonstrates WillowUI's Label and Button components: reactive text binding, click callbacks, visual states (normal, hovered, disabled), and an IconButton.
Buttons demonstrates WillowUI's Label and Button components: reactive text binding, click callbacks, visual states (normal, hovered, disabled), and an IconButton.
calendar command
checkbox-radio command
Checkbox & Radio - reactive demo.
Checkbox & Radio - reactive demo.
color-picker command
ColorPicker - demonstrates all color input modes.
ColorPicker - demonstrates all color input modes.
custom-component command
custom-component demonstrates how to build a reusable custom widget and register it for use in XML templates via RegisterWidget.
custom-component demonstrates how to build a reusable custom widget and register it for use in XML templates via RegisterWidget.
datatable command
DataTable example — character roster demo.
DataTable example — character roster demo.
datatable-meters command
DataTable meters example — demonstrates MeterColumn with dynamic fill colors.
DataTable meters example — demonstrates MeterColumn with dynamic fill colors.
datatable-selection command
DataTable SelectionColumn example — email inbox demo.
DataTable SelectionColumn example — email inbox demo.
drag-handle command
DragHandle - resizable panel demo.
DragHandle - resizable panel demo.
filter-search command
Filter Search — demo.
Filter Search — demo.
flow command
Flow layout demonstrates LayoutFlow: children placed left-to-right with automatic row wrapping.
Flow layout demonstrates LayoutFlow: children placed left-to-right with automatic row wrapping.
focus-gallery command
Focus Gallery demonstrates WillowUI's focus control system: Tab cycling, spatial arrow-key navigation, keyboard activation, and hotkey dispatch across a mixed VBox / HBox / absolute layout.
Focus Gallery demonstrates WillowUI's focus control system: Tab cycling, spatial arrow-key navigation, keyboard activation, and hotkey dispatch across a mixed VBox / HBox / absolute layout.
forms command
Forms demonstrates WillowUI's form controls: toggle, checkbox, radio group, text input, and text area with reactive bindings and visual states.
Forms demonstrates WillowUI's form controls: toggle, checkbox, radio group, text input, and text area with reactive bindings and visual states.
gradient-editor command
GradientEditor demonstrates the WillowUI GradientEditor widget: an interactive editor for horizontal, vertical, and 4-corner bilinear gradients.
GradientEditor demonstrates the WillowUI GradientEditor widget: an interactive editor for horizontal, vertical, and 4-corner bilinear gradients.
image command
Image widget demo.
Image widget demo.
imagecropper command
ImageCropper widget demo.
ImageCropper widget demo.
keybindinput command
KeybindInput demonstrates WillowUI's KeybindInput component for capturing keyboard and gamepad bindings in game settings screens.
KeybindInput demonstrates WillowUI's KeybindInput component for capturing keyboard and gamepad bindings in game settings screens.
labels-buttons command
Labels & Buttons - reactive demo.
Labels & Buttons - reactive demo.
layout command
Component demonstrates WillowUI's base Component system: layout modes (VBox, HBox, Grid), theming, focus management, dirty flags, and the component lifecycle.
Component demonstrates WillowUI's base Component system: layout modes (VBox, HBox, Grid), theming, focus management, dirty flags, and the component lifecycle.
list command
List - reactive demo.
List - reactive demo.
lists command
Lists demonstrates WillowUI's list components: flat list with 1000 items showing virtualization, tile list grid, and tree list with expand/collapse.
Lists demonstrates WillowUI's list components: flat list with 1000 items showing virtualization, tile list grid, and tree list with expand/collapse.
masked-input command
Masked Input — demo.
Masked Input — demo.
menubar command
menubar demonstrates a desktop-style menu bar with File, Edit, View, and Help menus.
menubar demonstrates a desktop-style menu bar with File, Edit, View, and Help menus.
menus command
menus showcases WillowUI's menu system: Select dropdowns, right-click ContextMenus, and programmatically triggered menus.
menus showcases WillowUI's menu system: Select dropdowns, right-click ContextMenus, and programmatically triggered menus.
modal command
Modal demonstrates WillowUI's modal window mode: a confirmation dialog with a darkened backdrop overlay that blocks all input to the content behind it.
Modal demonstrates WillowUI's modal window mode: a confirmation dialog with a darkened backdrop overlay that blocks all input to the content behind it.
navdrawer command
NavDrawer - slide-out navigation panel demo.
NavDrawer - slide-out navigation panel demo.
option-rotator command
OptionRotator demonstrates WillowUI's OptionRotator component: a compact left/right chevron control for cycling through a fixed list of options.
OptionRotator demonstrates WillowUI's OptionRotator component: a compact left/right chevron control for cycling through a fixed list of options.
popover command
Popover demonstrates WillowUI's Popover widget: a floating interactive panel anchored to a trigger button, dismissed by clicking outside.
Popover demonstrates WillowUI's Popover widget: a floating interactive panel anchored to a trigger button, dismissed by clicking outside.
ranges command
Ranges demonstrates WillowUI's range controls: slider, scrollbar, progress bar, and meter bar with reactive bindings, drag interaction, and visual states.
Ranges demonstrates WillowUI's range controls: slider, scrollbar, progress bar, and meter bar with reactive bindings, drag interaction, and visual states.
richtext command
RichText demonstrates WillowUI's RichText component: multi-span styled text with bold, italic, bold+italic variants from a single FontFamily, colors, outlines, word wrapping, and alignment options — all using the span API (AddSpan, AddBoldSpan, AddItalicSpan, AddBoldItalicSpan, AddStyledSpan).
RichText demonstrates WillowUI's RichText component: multi-span styled text with bold, italic, bold+italic variants from a single FontFamily, colors, outlines, word wrapping, and alignment options — all using the span API (AddSpan, AddBoldSpan, AddItalicSpan, AddBoldItalicSpan, AddStyledSpan).
richtext-markup command
RichTextMarkup demonstrates XML-like markup parsing into WillowUI RichText spans.
RichTextMarkup demonstrates XML-like markup parsing into WillowUI RichText spans.
richtext-mixed-fonts command
RichText-Mixed-Fonts demonstrates rendering RichText with two different FontFamily instances (Lato sans-serif and Noto Serif) in the same view, mixing them within the same RichText via AddStyledSpan and AddTextSpan.
RichText-Mixed-Fonts demonstrates rendering RichText with two different FontFamily instances (Lato sans-serif and Noto Serif) in the same view, mixing them within the same RichText via AddStyledSpan and AddTextSpan.
screens command
Screens demonstrates WillowUI's ScreenManager — a navigation stack modelled after mobile app routing.
Screens demonstrates WillowUI's ScreenManager — a navigation stack modelled after mobile app routing.
scrollbar command
Reactive - ScrollBar: Custom Scroll Area Shows ScrollBar.BindScrollPos with Ref[float64] to wire two external scrollbars to a manually-clipped content viewport — without ScrollPanel.
Reactive - ScrollBar: Custom Scroll Area Shows ScrollBar.BindScrollPos with Ref[float64] to wire two external scrollbars to a manually-clipped content viewport — without ScrollPanel.
search-dropdown command
Search Dropdown — autocomplete demo.
Search Dropdown — autocomplete demo.
sliders command
Sliders - reactive demo.
Sliders - reactive demo.
sortable-list command
SortableList example — demonstrates drag-handle reordering and keyboard reorder commands (Alt+Up / Alt+Down) with a reactive array backing.
SortableList example — demonstrates drag-handle reordering and keyboard reorder commands (Alt+Up / Alt+Down) with a reactive array backing.
sortable-treelist command
SortableTreeList example — demonstrates a hierarchical list with drag reordering within levels and optional reparenting.
SortableTreeList example — demonstrates a hierarchical list with drag reordering within levels and optional reparenting.
statweb command
StatWeb demonstrates the WillowUI StatWeb widget: a spider/radar chart for visualizing multi-axis attributes with optional editable handles.
StatWeb demonstrates the WillowUI StatWeb widget: a spider/radar chart for visualizing multi-axis attributes with optional editable handles.
tabs command
Tabs - reactive demo with scrollable overflow.
Tabs - reactive demo with scrollable overflow.
tag command
Tag demonstrates the WillowUI Tag and TagBar widgets: pill-shaped category labels with optional remove (×) and toggle modes, plus a tag-input bar where pressing Space creates chips.
Tag demonstrates the WillowUI Tag and TagBar widgets: pill-shaped category labels with optional remove (×) and toggle modes, plus a tag-input bar where pressing Space creates chips.
text-input command
Text Input - reactive demo.
Text Input - reactive demo.
tilelist command
TileList - reactive demo.
TileList - reactive demo.
timepicker command
TimePicker - demonstrates 24h and 12h time pickers with optional seconds.
TimePicker - demonstrates 24h and 12h time pickers with optional seconds.
toast command
Toast demonstrates WillowUI's Toast notification system: fire-and-forget messages that appear at a screen corner, auto-dismiss, stack, and animate.
Toast demonstrates WillowUI's Toast notification system: fire-and-forget messages that appear at a screen corner, auto-dismiss, stack, and animate.
toggle command
Toggle - reactive demo.
Toggle - reactive demo.
toggle-button-bar command
ToggleButtonBar demonstrates WillowUI's ToggleButtonBar component: a segmented control for single-selection among labeled buttons.
ToggleButtonBar demonstrates WillowUI's ToggleButtonBar component: a segmented control for single-selection among labeled buttons.
toolbar command
ToolBar demonstrates WillowUI's ToolBar with icon buttons in three modes:
ToolBar demonstrates WillowUI's ToolBar with icon buttons in three modes:
tooltip command
Tooltip demonstrates WillowUI's Tooltip component: hover delays, anchor positions (above, below, right, follow-mouse), rich multi-child content, shared tooltips with dynamic content, programmatic show/hide, and screen-edge clamping that keeps tooltips fully visible.
Tooltip demonstrates WillowUI's Tooltip component: hover delays, anchor positions (above, below, right, follow-mouse), rich multi-child content, shared tooltips with dynamic content, programmatic show/hide, and screen-edge clamping that keeps tooltips fully visible.
treelist command
TreeList - reactive demo.
TreeList - reactive demo.
treetable command
two-column-layout command
TwoColumnLayout demonstrates the full feature set:
TwoColumnLayout demonstrates the full feature set:
windows command
Windows demonstrates WillowUI's container widgets: Panel, ScrollPanel, and Window with dragging, closing, resizing, and bring-to-front behaviour.
Windows demonstrates WillowUI's container widgets: Panel, ScrollPanel, and Window with dragging, closing, resizing, and bring-to-front behaviour.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL