Merged in feat/sw-3228-move-image-to-design-system (pull request #2616)

feat(SW-3228): Move Image to design-system

* Move Image to design-system

* Merge branch 'master' into feat/sw-3228-move-image-to-design-system


Approved-by: Linus Flood
This commit is contained in:
Anton Gunnarsson
2025-08-12 12:58:05 +00:00
parent 800dc5c3c1
commit a2213d0169
65 changed files with 118 additions and 127 deletions
@@ -0,0 +1,10 @@
.imageFallback {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
width: 100%;
min-width: 200px;
min-height: 200px;
background-color: var(--Surface-Feedback-Neutral);
}
@@ -0,0 +1,23 @@
import { MaterialIcon } from '../Icons/MaterialIcon'
import styles from './imageFallback.module.css'
interface ImageFallbackProps {
width?: string
height?: string
}
export default function ImageFallback({
width = '100%',
height = '100%',
}: ImageFallbackProps) {
return (
<div className={styles.imageFallback} style={{ width, height }}>
<MaterialIcon
icon="imagesmode"
size={32}
color="Icon/Interactive/Disabled"
/>
</div>
)
}