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.
Preview
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.
Preview
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.
Preview
API
FallbackImage
| Property | Type | Default | Description |
|---|---|---|---|
| label | string | ”Medway” | Accessible label applied as aria-label on the SVG. |
| className | string | - | Merged into the SVG classes. The component already applies size-full to fill its container. |
| …props | React.ComponentProps<“svg”> | - | All native SVG props are supported. |