--- id: slds.guidance.utilities.media-object title: Media Object Utilities description: SLDS media object utility classes for image and text layouts summary: "Utilities for image+text layouts. Provides flexible pairing of media elements (icons/images) with text content. Includes size variants (small/large), positioning (left/right/center), and responsive stacking." artifact_type: reference domain: utilities topic: media-object content_format: structured complexity: intermediate audience: [implementer] tasks: [implement] refs: - slds.guidance.utilities - slds.guidance.overview.utilities - slds.guidance.hooks.spacing tags: [utilities, media-object, layout, flexbox] keywords: [slds-media, media object, figure, image layout] --- # Media Object - Image & Text Layouts Flexible image and text pairing layouts using flexbox. ## Core Classes | Class | Purpose | |-------|---------| | `slds-media` | Creates flex container for media object layout | | `slds-media__figure` | Container for media element (image/icon/avatar) | | `slds-media__body` | Container for text content next to figure | | `slds-media__figure_reverse` | Positions figure on the right side instead of left | ## Size Variants | Class | Purpose | Spacing | |-------|---------|---------| | `slds-media_small` | Reduces spacing between figure and body | 8px (`--slds-g-spacing-2`) | | Default spacing | Standard spacing between figure and body | 12px (`--slds-g-spacing-3`) | | `slds-media_large` | Increases spacing between figure and body | 20px (`--slds-g-spacing-5`) | ## Layout Modifiers | Class | Purpose | |-------|---------| | `slds-media_center` | Vertically centers figure and body content | | `slds-media_inline` | Makes body flow inline instead of taking full width | | `slds-media_responsive` | Stacks figure above body on smaller screens | | `slds-media__figure_fixed-width` | Sets fixed width on figure container (40px) | ## Common Patterns ```html
Sales Representative
Acme Corporation
Email notifications are enabled
Product description that will stack below image on mobile devices