123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657import React,{ ReactElement }from"react";import{
MediaContainer,
MediaOverlay,
MediaOverlayPosition,}from"@react-md/media";import{ Text }from"@react-md/typography";import styles from"./Container.module.scss";const positions: MediaOverlayPosition[]=["top","right","bottom","left","middle","center","absolute-center",];exportdefaultfunctionDemo(): ReactElement {return(<>{positions.map((position, i)=>(<MediaContainerkey={position}id={`overlay-container-${i}`}height={9}width={16}className={styles.container}><imgsrc={`https://picsum.photos/800/800?image=43${i}`}alt=""aria-describedby={`overlay-container-overlay-${i}`}/><MediaOverlayid={`overlay-container-overlay-${i}`}position={position}><Texttype="headline-5"margin="none"align={["left","right","center"].includes(position)?"center":undefined}>
This is a random picture!
</Text></MediaOverlay></MediaContainer>))}</>);}