Figure
A diagram or image set apart from the text: centred on a well, with a caption, scrolling sideways only when it can't shrink to fit.
<Figure label="Diagram: route of a request" caption="Route of a request" className="w-full">
<ThemeImage light="/demos/route.light.svg" dark="/demos/route.dark.svg" alt="Route of a request: app, Kaeso, provider" width={364} height={49} />
</Figure>import { Figure } from "@logicplanes/kaeso-ui";Props
captionReactNodeA few words at the figure's foot that say what it shows, such as a diagram's title.
childrenReactNodeWhat the figure shows, usually a ThemeImage.
focusnumber = 0.5Where a figure wider than its column starts, as a share of its width: 0.5, the middle, by default.
labelstringThe name of the figure's scrolling region, read by screen readers; give each figure on a page its own.
surface"well" | "plain" = wellThe figure's background: a flat plate like a code block's, or none, with the caption under a hairline.