Expand description
Reusable section chrome helpers for messages, help, and guide rendering.
This module exists so the rest of the UI can ask for titled sections and framed blocks without duplicating border logic in every renderer. It keeps section-frame policy, title styling, and ASCII/Unicode fallback behavior in one place.
Contract:
- chrome helpers may depend on theme/style resolution
- they should not decide when sections are shown, only how a requested section frame is rendered
Structs§
- Section
Render Context - Context required to render section chrome with semantic styling.
- Section
Style Tokens - Style tokens applied to section borders and titles.
Enums§
- Ruled
Section Policy - Placement policy for ruled section separators across sibling sections.
- Section
Frame Style - Frame style used when rendering section chrome.
Functions§
- render_
section_ block_ with_ overrides - Renders one titled section body with the requested frame and style tokens.
- render_
section_ divider_ with_ columns - Renders a section divider while controlling the title start column.
- render_
section_ divider_ with_ overrides - Renders a section divider line using explicit style overrides.