Nutrient Main Toolbar
State-driven main toolbar. Renders coordinator's frame and items, emits ToolbarActions via coordinator.dispatch(…).
This is the single composable that paints the top toolbar in all three hosts (PdfActivity, PdfFragment, standalone). The lifecycle binding differs by host; the rendering does not.
Customization slots — use only what you need:
customTitle: replaces the title text entirely.
customActions: append-only extra items rendered to the END side, outside the regular item grouping.
For most use cases you don't need slots — just register items on the coordinator and let the layout do its job.
Phase 0 wires the reactive render: it observes the coordinator's two kotlinx.coroutines.flow.StateFlows and hands the items to NutrientToolbarLayout, which owns the pixel-accurate visible/overflow split in its measure pass (P0-5). Production mounting in PdfActivity and full visual parity are Phase 1; vertical positioning (ToolbarFrame.position other than Top) is Phase 5.