Figure

Figure screenshot

When to use

For any image referenced by number from the prose (e.g. “see Fig. 2”). The component wraps a <figure> with an outer frame and optional <figcaption>.

Example

import Figure from '../../components/widgets/Figure.astro';

<Figure
  src="/images/cot_interp/2026-04-21/fig-2.png"
  alt="Attribution map for token 12"
  num={2}
  caption="Attribution traces back through the residual stream."
/>

Props

PropTypeRequiredNotes
srcstringyesImage URL (typically under /images/...).
altstringyesAlt text. Required for accessibility.
numnumber | stringnoFigure number; renders a “Fig. N” badge in the caption.
captionstringnoCaption text shown next to the number.

The image is loading="lazy" and decoding="async" by default.

When not to use