Caps text at a readable line length, roughly 45 to 80 characters, and centers it. Use it around articles, guides and long form fields; layout components take the full width.
Wrap long text. Measure renders a <div> unless you pass as, so an article can be the Measure itself.
Reading a snow course
A snow course is a line of marked points where observers measure depth and water content by hand. The same points are sampled near the first of each month, so a season’s readings can be compared with decades of earlier ones without worrying that the observer chose easier ground.
Automated stations report every hour, which makes them better for storms and melt, but a single sensor can be fooled by drifting. When the two disagree, the manual course is usually the better guide to how much water the basin holds, and the station is the better guide to when it changed.
import { Box, Measure } from'@blocks/design-system'exportdefaultfunctionFieldNotes() {
return (
<Measureas="article"size="md"aria-labelledby="field-notes-title">
<Boxas="h3"id="field-notes-title"marginTop="none">
Reading a snow course
</Box>
<p>
A snow course is a line of marked points where observers measure depth and water content by hand. The same
points are sampled near the first of each month, so a season’s readings can be compared with decades of earlier
ones without worrying that the observer chose easier ground.
</p>
<p>
Automated stations report every hour, which makes them better for storms and melt, but a single sensor can be
fooled by drifting. When the two disagree, the manual course is usually the better guide to how much water the
basin holds, and the station is the better guide to when it changed.
</p>
<ahref="#next-reading">Next: comparing seasons</a>
</Measure>
)
}
size takes a measure token: sm (26rem), md (38rem, the default) or lg (46rem). The tokens are rems rather than ch, so a line doesn’t change length when a web font replaces the fallback. On a screen narrower than the measure, Measure is simply the full width. Pass marginX="none" to align it to the start instead of centering.