Skip to main content

Module props

Module props 

Source

Structs§

ButtonProps
CanvasProps
ContainerProps
CoverProps
A fullscreen cover’s content container (docs/cover.md). Realized detached and hidden; CoverPatch::Present shows it over the whole window.
ImageProps
LabelProps
ListProps
Native recycling list (docs/list.md). The host owns scrolling + cell reuse; Day supplies row content on demand through the injected ListSource (see Toolkit::attach_list).
NavBarAction
A trailing action button on the navigation bar (docs/navigation.md) — the phones’ and HarmonyOS’s stand-in for a desktop toolbar button, since those toolkits have no window toolbar (Cap::Toolbar is Unsupported). Rendered upper-right on the nav bar by the mobile backends (iOS rightBarButtonItem, Android/HarmonyOS a menu action); ignored by desktop split presentations, which carry their commands in a real toolbar instead.
NavMenuProps
Native navigation item list. items are display titles in route order; selected highlights the active route (split presentation; None on mobile roots). icons (parallel to items, None = no icon) are BUNDLED IMAGE NAMES resolved by each backend via resource::resolve_image_file — a backend that can’t decorate its rows just ignores them.
NavPageProps
One destination’s native container. sidebar marks the split-mode sidebar pane.
NavProps
Navigation host (docs/navigation.md). split = sidebar+detail presentation (chosen by the pieces layer from Cap::NavSplit); false = stack presentation.
PickerProps
Full picker props (realize). options/style are set once at build; only selected patches (via PickerPatch::Selected).
ProgressProps
Progress indicator. value is the completed fraction in 0.0..=1.0; None means indeterminate (an animated spinner / busy bar — no known extent). Backends map this to their native determinate/indeterminate widgets (docs/progress.md).
ScrollProps
Realize props for a scroll container: which axis it scrolls. Backends create the matching native scroll view (vertical UIScrollView/ScrollView, horizontal HorizontalScrollView, etc.).
SliderProps
TabsPageProps
One tab’s content container. title is its tab label (read by the host on insert); icon is its optional bundled-image name, set on the tab item where the backend shows tab icons (iOS UITabBarItem), ignored otherwise.
TabsProps
Native tabbed container (docs/tabs.md). titles are the tab labels in page order; selected is the active tab index. Toolkits present a native tab widget and show the selected page.
TextAreaProps
Full text-area props (realize, kinds::TEXT_AREA — docs/textarea.md). text seeds the editor; min_lines/max_lines bound the auto-growing height in text lines (max_lines == 0 = unbounded). editable/selectable/spellcheck control the native editor attributes (all default true); a backend that can’t honor one answers Cap::Text{Editable,Selectable,SpellCheck} = Unsupported. text and the three attributes change after build (via TextAreaPatch); the rest are build-only.
TextFieldProps
ToggleProps

Enums§

ButtonPatch
ButtonStyleSpec
A button’s NATIVE styling tier. Automatic is the toolkit’s stock look; Bordered asks for a visually contained button where the stock look is borderless (iOS’s plain system button reads as a link); Prominent asks for the platform’s accent-filled / default-action affordance. Toolkits whose stock buttons are already contained treat Bordered as Automatic.
ContainerPatch
Reactive surface update for a background(..) decorator whose color is a signal/closure: the backend re-applies the fill on the container’s native backing view. Corner radius and clipping are fixed at realize (the corner_radius(r) decorator takes a plain f64).
ContentMode
How an image is scaled to fill its frame (§18.3). Maps to each toolkit’s native scaling.
CoverPatch
Applied to a kinds::COVER node as its bound signal opens and closes it.
LabelPatch
ListPatch
NavMenuPatch
NavPatch
Applied to the NAV HOST after a page child is attached / before it is removed; the toolkit animates its native presentation accordingly.
PickerPatch
PickerStyle
SwiftUI’s pickerStyle analogue (kinds::PICKER). Each maps to a distinct native control per toolkit (docs/picker.md).
ProgressPatch
RowHeight
How a recycling list sizes its rows (docs/list.md).
SliderPatch
TabsPatch
TextAreaPatch
Imperative text-area updates: replace the text (programmatic sync), or flip one of the live attributes.
TextFieldPatch
TogglePatch
Day API ↩ Guides· daybrite.dev