- Docs
- enzUI framework
- Developers
Widget catalog
Every widget in the gallery, as it renders in the dark theme.
Captured from cargo run -p enzui-widgets --example gallery. Each picture is the widget's live preview with its default settings; open the gallery to try the controls and copy the code. Jump to a group:
- Buttons and actions
- Text input and forms
- Selection and pickers
- Date, colour and emoji
- Navigation
- Feedback and progress
- Charts
- Tables and lists
- Text and content
- Containers and surfaces
- Layouts
- Materials and depth
- Animation and motion
- Images and SVG
- Overlays and dialogs
Text input and forms
ENZUI_GALLERY_PAGE=Input

RichEditor::viewFormatted text: bold, italic, lists and links, with its own toolbar. The editor owns its document; the view renders it.
enz_text_fieldOne line of text with a label above it. A description explains it; an error replaces the description and colours the border.
enz_secure_fieldA password field. The eye button shows the text; copying out of it is refused.
enz_search_fieldA search box with a magnifier and a clear button.
enz_toggleAn on/off switch for a setting that applies at once.
enz_checkboxA yes/no choice. A parent shows the mixed state while only some of its children are on.
enz_radio_groupOne choice out of a short list, all visible at once.
enz_sliderA value in a range, set by dragging or with the arrow keys. A step snaps it; marks show the steps.
enz_range_sliderA low and a high value in one track, for a price or date range.
enz_stepperA number with minus and plus buttons: whole (i32, u32) or decimal (f32, f64), which keeps the places its step needs. Click the value to type one; Enter or clicking away commits, Escape cancels.
enz_chip_inputA list of short values typed into one field: Enter or a comma makes a chip, Backspace removes the last.
enz_input_otpA one-time code, one cell per character, grouped for reading.
enz_rating_inputA star rating the user sets by clicking or with the arrow keys.
Selection and pickers
ENZUI_GALLERY_PAGE=Selection

enz_combo_boxA dropdown: one choice out of a long list. Searchable filters the list as you type.
enz_radio_buttonA single radio option, for laying out choices yourself; all options share one selected value.
enz_time_pickerA time of day: type it, or pick from a list at a fixed interval.
enz_preferences_group + enz_preferences_rowA settings list: each row has a title, an optional subtitle and a control on the right.
Date, colour and emoji
ENZUI_GALLERY_PAGE=Pickers

enz_date_pickerA date field that opens a month calendar. The state keeps the open month and the bounds.
enz_color_pickerPicks a colour on a saturation plane and a hue strip, or as hex.
enz_color_swatchOne preset colour to click. The selected swatch shows a ring.
enz_emoji_pickerSearchable emoji in categories, with the recently used first.
Feedback and progress
ENZUI_GALLERY_PAGE=Feedback

enz_progress_textA short status line with a working indicator, for work without a known length.
enz_animated_imageA GIF or APNG played on its own frame delays; it holds still with reduced motion or when paused.
enz_bannerA message across the top of a page or pane, with an optional action. The tone sets its colour and icon.
enz_progress_barHow far a task has got, from 0.0 to 1.0. The fill glides to each new value.
enz_spinnerWork in progress with no known length. It turns on the compositor, so it costs the app no frames.
enz_gaugeA value as a ring, for a level or a share. It sweeps to each new value; drag the progress slider above.
enz_status_dotA small coloured dot for a state: online, failing, running. It can breathe or ripple for a live state.
enz_badgeA short label or count beside something else.
enz_avatarA person's picture, or their initials when there is none.
enz_skeletonA placeholder in the shape of content that is still loading. It pulses unless motion is reduced.
enz_toastA brief message about something that just happened. Shown here inline; an app stacks them in a toast host over its window.
enz_ratingA read-only star rating; halves show as half stars.
enz_status_pageFills an empty or failed view with an icon, a title, a line of help and an optional action.
Charts
ENZUI_GALLERY_PAGE=Charts

enz_line_chartValues over a continuous axis; each Series is one line.
enz_bar_chartValues by category. Click a bar to select it.
enz_area_chartA line chart filled down to the axis, for amounts that add up over time.
enz_pie_chartShares of a whole. A donut ratio cuts out the middle.
enz_scatter_chartPoints on two axes, to show how two values relate.
enz_sparklineA tiny trend line without axes, to sit beside a number or in a table cell.
Tables and lists
ENZUI_GALLERY_PAGE=Data

enz_tableA virtualised table: only the visible rows are built, so 500 rows cost as much as 10. Click a header to sort, drag its edge to resize, click a row to select it.
enz_notification_inboxA list of notifications with read state, grouping and dismissal. The core Inbox holds them; apply() updates it.
enz_tree_viewNested rows that open and close. The app keeps which branches are open and passes the visible rows, each with its depth.
Text and content
ENZUI_GALLERY_PAGE=Content

enz_markdownRenders Markdown: headings, emphasis, code, lists, quotes and links.
enz_code_blockSource code with highlighting and a copy button, like the code under every specimen here.
enz_chat_bubbleOne message in a conversation. The role puts it on the right side and colours it.
enz_media_controlsPlay, seek and volume for audio or video. It shows a media Snapshot and sends a message per action.
enz_labeled_contentA label and its value on one row, for read-only details.
enz_dividerA line between groups, optionally with a word in the middle.
enz_preview_rowA list row with a title and a clipped excerpt, as in a mail or notes list: an avatar or icon before it, a time after the title, and an unread dot.
Containers and surfaces
ENZUI_GALLERY_PAGE=Containers

enz_cardA surface that groups related content under an optional title.
enz_group_boxA titled frame around a few related controls.
enz_section_headerA heading that starts a section of a list or page.
enz_header_barThe title row at the top of a pane, with optional back button and actions.
enz_status_bar_stripA strip along the bottom of a window or pane, with items at both ends.
Layouts
ENZUI_GALLERY_PAGE=Layouts

enz_responsive_gridCells in columns that follow the width: three here, one on a phone. Resize the window to see it.
enz_flowItems in a row that wraps onto new lines, like words in a paragraph.
enz_carouselPages one at a time, with indicators, arrow keys and swipe. Each page is built only when shown.
Materials and depth
ENZUI_GALLERY_PAGE=Materials

enz_glassA material that samples what is behind it: refraction at the rim, frost and tint over a busy background. The style picks how much it hides.
enz_gradient_backgroundA linear gradient of two or three colours behind any content; the glass above sits on one.
enz_elevationLifts content off the page with a shadow, from level 0 (flat) to 5.
grainA paper-like speckle on any surface: enz_surface(..).grain(..), a shell pane's PaneStyle::grain, or enz_grain around anything. The built-in grain is a seamless noise tile rasterised once per screen scale; any SVG can be a grain too. GrainSpec::Theme follows the theme's own grain.
Animation and motion
ENZUI_GALLERY_PAGE=Motion

Built-in widget motionEvery control animates its own state changes on the theme's motion scale: hover a button, focus a field, check a box, or change the values. Reduce motion makes every change land at once, as the theme's reduced_motion does for a whole app.
animated(..).spring(..)Each dot runs on a different spring. Press the button again mid-flight: every dot turns around with the speed it had. The app only sets the target; the widget animates without frame messages.
SpringAnimationDrag the card and let go: it carries your speed to the nearer side. Catch it mid-flight. The app owns the spring and reads its value each frame.
Images and SVG
ENZUI_GALLERY_PAGE=Images

enz_animated_imageA GIF or APNG played on its own frame delays; it holds still with reduced motion or when paused.
enz_image_handleA raster picture. The fit says how it fills its box when the shapes differ; the box here is 140 px tall.
enz_svgA vector picture that stays sharp at any size. A symbolic one takes the text colour, so it follows the theme.
enz_animated_svgSVG with SMIL and CSS animation. Each picture redraws only when it changes, and stops when hidden or paused. The last square starts when clicked.
Overlays and dialogs
ENZUI_GALLERY_PAGE=Dialogs

enz_menu_buttonA button that opens a menu of commands. The core MenuModel lists them; apply_event() tracks the open state.
enz_popoverFloating content anchored to a trigger, closed by Escape or a click outside. The app says whether it is open.
enz_about_dialogThe standard About window: name, version, credits, licence and links. It hosts itself over the page while open.
enz_confirm_dialogAsks before an action that cannot be undone. A destructive one colours the confirm button.















