pub enum Builtin {
Show 21 variants
Container,
Label,
Button,
Toggle,
Slider,
TextField,
TextArea,
Picker,
Divider,
Scroll,
Image,
Progress,
Canvas,
Nav,
NavPage,
NavMenu,
Tabs,
TabsPage,
List,
ListCell,
Cover,
}Expand description
Variants§
Container
A dumb native panel (the column/row/stack backing).
Label
Button
Toggle
Slider
TextField
TextArea
A native multi-line text editor (docs/textarea.md). Built-in since 2026-07 (previously
the satellite day-piece-textarea).
Picker
A native option picker with menu/segmented/inline stylings (docs/picker.md). Built-in
since 2026-07 (previously the satellite day-piece-picker).
Divider
Scroll
Image
Progress
Progress indicator: determinate bar (fraction) or indeterminate spinner.
Canvas
Navigation host (docs/navigation.md): stack on mobile, split panes on desktop.
One destination’s native container inside a NAV host.
Native navigation item list (docs/navigation.md): NSOutlineView source list / GtkListBox navigation-sidebar / QListWidget / UITableView rows with chevrons.
Tabs
Native tabbed container (docs/tabs.md): NSTabView / GtkNotebook / QTabWidget /
UITabBarController / Android tab strip. Holds TABS_PAGE children, one visible.
TabsPage
One tab’s content container inside a TABS host; its frame is native-owned.
List
Native recycling list (docs/list.md): NSTableView / UITableView / RecyclerView / GtkListView / QListView. Owns scrolling + cell reuse; Day binds row content on demand.
ListCell
A recycled row’s content anchor inside a LIST; Day adopts the native cell as its handle.
ADOPTED, never realized — Toolkit::adopt wraps the native cell, so backends’ realize
never sees this kind.
Cover
A fullscreen cover (docs/cover.md): a modal surface presented over the whole window,
edge-to-edge, driven by CoverPatch::{Present,Dismiss}. The handle is the cover’s
CONTENT container; its frame is native-owned while presented (the backend sizes it to
the safe area and reports it via Event::FrameChanged).