Skip to main content

Module props

Module props 

Source

Structs§

ButtonContent
The visible content and accessible title of a button with an icon.
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.
DividerProps
A rule between neighbors (divider()): a hairline across the width it is offered, or, with vertical, down the height it is offered (divider().vertical(), between a row’s panes). A toolkit measures both the same way, as a horizontal rule, because the pieces layer swaps the axes of a vertical one’s proposal and answer; realization is where the orientation matters, for the few widgets that draw a horizontal line regardless of their frame.
DocumentTabsConfig
Localized document-tab chrome. Native callbacks emit stable route keys.
DocumentTabsPatch
Switch only tab chrome; resident contents must retain their native identity.
ImageProps
InspectorPaneProps
One pane of a kinds::INSPECTOR split (docs/inspector.md).
InspectorProps
A kinds::INSPECTOR split (docs/inspector.md): content beside a trailing inspector pane. The pane’s visibility is Day-owned state (the piece’s bound signal), so the props carry the value to draw and InspectorPatch::Visible keeps it current; a native affordance hiding the pane (a dock close button, a dragged-shut divider) reports back with crate::Event::InspectorChanged.
LabelProps
ListItemProps
A list row’s standard content (kinds::LIST_ITEM, docs/list.md “List items”). Empty text means the part is absent.
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).
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.
NavProps
Navigation host (docs/navigation.md).
PickerProps
Full picker props (realize). style is set once at build; options, selected and enabled patch (via PickerPatch).
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).
RefreshPatch
Configure a navigation sidebar’s native pull-to-refresh control. Not a synthetic pan: supported toolkits own gesture arbitration and the progress indicator. A false state ends a pull, including a request the application declines. Never emits an event.
ScrollProps
Realize props for a scroll container: which axis it scrolls. Backends create the matching native scroll view (vertical UIScrollView/ScrollView, horizontal HorizontalScrollView, etc.).
SearchProps
Search over a navigation surface (docs/search.md). The query itself stays an app-owned signal; this carries only what the toolkit must draw, so moving the field between placements never moves the state.
SliderProps
SplitPaneProps
One pane of a kinds::SPLIT (docs/split.md).
SplitProps
A kinds::SPLIT (docs/split.md): two panes with a divider the user drags. The first pane’s share is Day-owned state (the piece’s bound signal): the props carry the value to draw, SplitPatch::Fraction keeps it current, and a divider the user moved reports back as crate::Event::ValueChanged with the new share, which applying the patch must never re-emit (the from-native echo rule).
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
TreeProps
Immutable-at-realize props of a kinds::TREE host (docs/tree.md). Everything that changes after realize flows through TreePatch or the injected TreeSource.

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.
ImagePatch
A live change to a realized image or vector glyph.
InspectorPatch
Applied to a kinds::INSPECTOR node as its bound signal changes.
LabelPatch
ListItemPatch
A live change to a realized list item; every part changes in place.
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.
NavPresentation
How a navigation host lays its panes out (docs/navigation.md).
Pane
Which pane of a navigation host a page belongs to (docs/navigation.md).
PaneEdge
Which side an inspector pane occupies (docs/inspector.md).
PickerPatch
PickerStyle
SwiftUI’s pickerStyle analogue (kinds::PICKER). Each maps to a distinct native control per toolkit (docs/picker.md).
ProgressPatch
RowDelta
One row-level result-set change. Indexes are sequential (each delta describes the set as the previous ones left it), so a host applies them one at a time (or falls back to a reload; the source’s snapshot already holds the final state either way).
RowHeight
How a recycling list sizes its rows (docs/list.md).
SearchPatch
A targeted update to a live search field, the path a bound signal writes through, so syncing text never rebuilds (and refocuses) the field mid-word.
SearchPlacement
Where a searchable surface’s field should be drawn.
SliderPatch
SplitAxis
How a kinds::SPLIT lays its two panes (docs/split.md): beside each other, the divider standing, or stacked, the divider lying. Named by where the panes go, since that is what an app’s “layout” toggle means; the divider runs the other way.
SplitPatch
Applied to a kinds::SPLIT node as its bound signals change.
TextAlign
How a wrapped label’s lines sit within its width (LabelProps::align).
TextAreaPatch
Imperative text-area updates: replace the text (programmatic sync), or flip one of the live attributes.
TextFieldPatch
TextRole
What a label’s text means, for the color the platform gives it (LabelProps::role).
TogglePatch
TreePatch
Post-realize changes to a kinds::TREE host (docs/tree.md). Token-addressed throughout; see crate::TreeSource for why indices cannot address tree rows.
Day API ↩ Guides· daybrite.dev