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.

View source
Route of a request
import { Figure } from "@logicplanes/kaeso-ui";

Props

  • caption
    ReactNode

    A few words at the figure's foot that say what it shows, such as a diagram's title.

  • children
    ReactNode

    What the figure shows, usually a ThemeImage.

  • focus
    number = 0.5

    Where a figure wider than its column starts, as a share of its width: 0.5, the middle, by default.

  • label
    string

    The name of the figure's scrolling region, read by screen readers; give each figure on a page its own.

  • surface
    "well" | "plain" = well

    The figure's background: a flat plate like a code block's, or none, with the caption under a hairline.