slots prop.
Regions
Custom
Footer / Header slots receive a brandMark visual ('full' | 'mini' | 'hidden'),
resolved from config.content.brandMark and the frame size. That prop is not the visibility
toggle; the toggle is brandMark.enabled (or legacy isBrandMarkVisible). source remains your
data-source attribution. The default badge paints inside the matching region when placement matches.Two kinds of slot
The distinction matters when you write an override: Layout-safe slots (Header, Footer, Tooltip, Grid, Swatch) are bare components. They paint inside a box the layout already sized, so you just provide a component:
Legend, Headline, AxisTicks, AxisLabel) reserve edge space, so they’re an object with both a render component and a measure function that reports the region’s size. Paint and reserved space must agree, so the layout calls measure to know how much room to leave:
measure receives a SlotMeasureContext with measureText (the same Canvas-backed measurer the built-in regions use) and the active textScale, so your reserved size matches what actually paints.
Related
- Geom renderers — replace a whole geom’s paint, not just a region
- Interactivity — the
Tooltipslot in context - Theming — restyle regions with tokens before reaching for a slot

