<!-- Basic inline image -->
<umd-element-media-inline>
<img slot="image" src="campus.jpg" alt="Campus view" />
</umd-element-media-inline>
<!-- Image with caption -->
<umd-element-media-inline>
<img slot="image" src="research-lab.jpg" alt="Research laboratory" />
<p slot="caption">State-of-the-art research facility opened in 2023</p>
</umd-element-media-inline>
<!-- Right-aligned image with wrapping text -->
<umd-element-media-inline data-align="right">
<img slot="image" src="professor.jpg" alt="Professor teaching" />
<div slot="text">
<p>Our distinguished faculty members bring decades of experience and expertise
to the classroom. They are committed to student success and advancing knowledge
in their fields through groundbreaking research.</p>
<p>With a student-to-faculty ratio of 18:1, students benefit from personalized
attention and mentorship opportunities.</p>
</div>
</umd-element-media-inline>
Media Inline
A versatile media component for displaying images inline with optional captions or wrapping text. Supports multiple display modes including standard image display, image with caption, and text-wrapped image layouts. Ideal for article content, blog posts, and rich text sections.
Custom Element
<umd-element-media-inline>
Slots
image
- The media image to display (required, accepts: img)caption
- Image caption text (accepts: div, p)text
- Text content that wraps around the image (accepts: div, p)wrapping-text
- Deprecated: Use "text" slot instead (accepts: div, p)Attributes
data-theme
- Theme options:dark
- Dark background with light textdata-align
- Image alignment:right
- Aligns image to the right (text wraps on left)