Skip to content

Illustrations

The package ships the three illustrations used by the Error Page. They are plain SVG files from the design file.

Illustration for a 404 errorerror-404.svgAlso used for 401 and 403.
Illustration for a 500 errorerror-500.svgAlso used for 400.
Illustration for a 503 errorerror-503.svgAlso used for 408.

Import the file by its package path. How a bundler turns an SVG import into a URL differs; with Vite, add ?url:

import art from '@beyul/sulmu-ui/illustrations/error-404.svg?url'
<ErrorPage illustration={<img alt="" src={art} />} title="..." />

errorPageCopy[code].illustration names the right file for each error code.