Skip to Content
DocumentationFallback Image

Fallback Image

A branded placeholder illustration rendered when an image is missing. It draws the Medway wordmark over a dark blue radial gradient and fills its container. It is used as the default cover for CardLesson, CardContinue and CardNews whenever no src (and no custom children) is provided, and can also be used standalone.

Examples

Default

FallbackImage fills its parent container (size-full). Give the parent a size and overflow-hidden to clip it to the desired shape.

Aspect ratios

The illustration uses preserveAspectRatio="xMidYMid slice", so the gradient always covers the frame and the wordmark stays centered. Since the wordmark is wide, prefer landscape or square frames — very narrow frames will crop it.

As a card cover fallback

This is the default behavior of CardLesson, CardContinue and CardNews: when their image component receives no src and no children, FallbackImage is rendered automatically.

API

FallbackImage

PropertyTypeDefaultDescription
labelstring”Medway”Accessible label applied as aria-label on the SVG.
classNamestring-Merged into the SVG classes. The component already applies size-full to fill its container.
…propsReact.ComponentProps<“svg”>-All native SVG props are supported.
Last updated on