Foundation
IllustrationsExplore the illustrations available in the installed @svenskaspel/ui package. Each preview uses the actual React component and follows the active theme.
Illustration library
Open an illustration's code example to find its public import and decorative usage. The library updates automatically when the UI package changes and the documentation is rebuilt.
Read the usage and accessibility guidance.
Usage and accessibility
Import illustrations individually from @svenskaspel/ui/react/illustrations, then add the component name to the end of the path. Their SVG proportions are preserved. Use CSS width or max-width with height set to auto when resizing them, and keep the theme's illustration colours.
Decorative illustrations repeat a message that is already available as text, such as “A reward is waiting for you.” Hide them from assistive technology with aria-hidden="true".
If an illustration conveys information that is not available in nearby text, give it role="img" and an aria-label that describes its message in context. A component name alone is usually not a useful alternative text. Keep instructions and actions available as text and controls.
<Anticipation aria-hidden="true" /><Anticipation role="img" aria-label="A wrapped reward is waiting for you." />