Image lists are RTL aware containers for sets of images and optional content.
npm install --save-dev @smui/image-list
The latest SMUI v3 had a lot of changes, and these docs haven't been caught up yet. You should check out the demo page's code to see the latest usage.
<ImageList class="my-image-list">
{#each $images as image}
<Item>
<ImageAspectContainer>
<Image src={image.src} alt={image.title} />
</ImageAspectContainer>
<Supporting>
<Label>{image.description}</Label>
</Supporting>
</Item>
{/each}
</ImageList>
<script>
import ImageList, {
Item,
ImageAspectContainer,
Image,
Supporting,
Label,
} from '@smui/image-list';
import { images } from './store.js';
</script>
// style.scss
.my-image-list {
@include mdc-image-list-standard-columns(5);
max-width: 680px;
}
@media (max-width: 599px) {
.my-image-list {
@include mdc-image-list-standard-columns(3);
}
}
todo...
See Image lists in the Material design spec.
See Image List in MDC-Web for information about the upstream library's architecture.