Multi Media

A section component that renders text content alongside media. Supports seven media types: image, video, audio, icon, Lottie animations, a second text block, and embedded frames with flexible layout options.

Image Properties

PropertyTypeRequiredDescription
image.srcstringYesPath to the image file
image.altstringYesAlternative text for accessibility
image.captionstringNoOptional caption displayed below the image

Audio Properties

PropertyTypeRequiredDescription
audio.bgImagestringNoBackground image displayed with audio player
audio.oggstringOne required*Path to OGG audio file
audio.mpegstringOne required*Path to MP3 audio file

*At least one audio format must be provided

Video Properties

PropertyTypeRequiredDescription
video.inSitubooleanNoDisplay inSitu (true) or in modal (false)
video.srcstringYesVideo source ('youtube', 'vimeo', or 'cloudinary')
video.idstringYesVideo ID for YouTube/Vimeo
video.cloudnamestringConditionalRequired for Cloudinary videos only
video.tnstringYesThumbnail image path for modal display

Icon Properties

PropertyTypeRequiredDescription
icon.iconstringYesIcon identifier from the icon library
icon.titlestringYesIcon title for accessibility
icon.urlstringNoOptional link URL for the icon

Lottie Animation Properties

PropertyTypeRequiredDescription
lottie.srcstringYesPath to Lottie JSON animation file
lottie.control.autoplaybooleanNoStart animation automatically (default: true)
lottie.control.loopbooleanNoLoop the animation (default: true)

Text Media Properties

PropertyTypeRequiredDescription
mediaTextobjectYesStandard text block (leadIn, title, titleTag, subTitle, prose) rendered in the media slot

Iframe Properties

PropertyTypeRequiredDescription
iframe.srcstringYesThe embed URL
iframe.titlestringYesAccessible title for the frame
iframe.allowstringNoPermissions policy, e.g. 'payment' for donation/checkout embeds

Configuration

yaml
- sectionType: multi-media
  containerTag: aside
  isReverse: false
  # more settings

  text:
    leadIn: 'Image Example'
    title: Rich Visual Content with Images
    titleTag: 'h2'
    subTitle: 'Enhance your message with compelling visuals'
    prose: Images are the cornerstone of visual storytelling on the web...
  ctas:
    - url: 'https://metalsmith.io'
      label: 'Learn More'
      isButton: true
      buttonStyle: 'primary'
  mediaType: image # may be 'audio', 'icon', 'lottie', 'image', 'video', 'text', or 'iframe',
  image:
    # image properties
  audio:
    # audio properties
  icon:
    # icon properties
  lottie:
    # lottie properties
  video:
    # video properties
  mediaText:
    # second text block, when mediaType is 'text'
  iframe:
    # embedded frame properties, when mediaType is 'iframe'

Configuration Options

Layout Settings

PropertyTypeRequiredDescription
isReversebooleanNoReverse the media/text layout (default: false)
mediaTypestringYesType of media ('image', 'video', 'audio', 'icon', 'lottie', 'text', 'iframe')

Content

PropertyTypeRequiredDescription
textobjectNoStandard text block with leadIn, title, subtitle, and prose
text.isCenteredbooleanNoCenters the text content within its container
ctasarrayNoArray of call-to-action buttons or links

Notes

  • Image, video, audio, icon, and Lottie animation support
  • Two-column text layouts via a second text block ('text')
  • Embedded frames for forms, maps, and other embeds ('iframe')
  • YouTube, Vimeo, and Cloudinary integration
  • Viedeo modal overlays or inSitu embedding
  • Audio players with background images
  • Scalable vector icons from comprehensive library
  • JSON-based animations with playback controls