<!--
  GENERATED FILE - do not edit by hand.
  Source of truth: src/components/mds-video-wall/ in the magma monorepo (usage/*.md and the
  component's JSDoc). Regenerated on every stencil build (scripts/component-docs.ts).
-->

# mds-video-wall

> `@maggioli-design-system/magma` 2.15.0. Shadow DOM: style it only through the public CSS custom properties and the parts below.

The `<mds-video-wall>` web component is the Magma Design System's full-bleed background video surface, used to render an autoplaying, looping ambient video behind foreground content. It wraps the native `<video>` element, adding an optional grain/noise overlay and a dedicated content layer for captions or call-to-action overlays.

#### Semantic Behavior

- **Ambient by default**: `autoplay`, `loop` and `muted` are all `true` out of the box, producing a self-contained background loop with no controls and no audio - the configuration browsers require for autoplay to be honored. When the Magma animation preference reduces motion (`pref-animation-reduce`, `mds-pref-animation`, or the OS `prefers-reduced-motion` under `system`), the video is hidden.
- **Decorative video**: The footage is treated as presentation only; meaningful information must live in the `content` slot, not in the video itself.
- **Noise overlay**: When `noise` is anything other than `'none'`, a decorative grain layer is rendered above the video; with `noise="none"` the layer is omitted entirely.
- **Conditional content layer**: The `content` overlay wrapper is shown only while a `slot="content"` child is present, also when it is added after the first render, so an empty overlay never affects layout.
- **Default slot is fallback text**: The default (unnamed) slot is projected inside the `<video>` element and is intended for the browser-support fallback message shown when video playback is unavailable.
- **Preload is conditional**: `preload` only takes effect when autoplay is disabled; the browser ignores it while `autoplay` is active.

#### Properties & Visual Configurations

This component does not use the shared `variant` / `tone` ladders; its props map closely to the underlying native `<video>` attributes plus the Magma-specific overlay.

#### Other behavioral props

- **`noise`** selects the texture/strength of the grain overlay (`'classic'`, `'sharp'`, `'soft'`, `'tv'`); choose the style that matches the intended mood, or `'none'` to disable the effect.
- **`poster`** is the still image shown before the footage is ready - pick a frame that reads well on its own, since it is the first thing users see.
- **`preload`** hints how aggressively the file is fetched on page load; relevant only when autoplay is off.
- **`src`** is the URL of the video file driving the wall.

## Read next

- [`examples.md`](examples.md) - correct usage, from the most common case
- [`mistakes.md`](mistakes.md) - the wrong forms, each with the right one
- [Storybook](https://magma-design-system.github.io/magma/storybook/?path=/docs/ui-video-wall--docs) - the live examples, in the published Storybook of `main`
- [`conventions.md`](../../../../agents/conventions.md), [`variants.md`](../../../../agents/variants.md), [`mistakes.md`](../../../../agents/mistakes.md) - the rules shared by every component

## Props

| Prop | Attribute | Type | Default | Description |
| --- | --- | --- | --- | --- |
| `autoplay` | `autoplay` | `boolean` | `true` | Specifies that the video will start playing as soon as it is ready |
| `loop` | `loop` | `boolean` | `true` | Specifies that the video will start over again, every time it is finished |
| `muted` | `muted` | `boolean` | `true` | Specifies that the audio output of the video should be muted |
| `noise` | `noise` | `"classic" \| "none" \| "sharp" \| "soft" \| "tv" \| undefined` | `'none'` | Specifies if the video has a noise overlay effect |
| `poster` | `poster` | `string \| undefined` | - | Specifies an image to be shown while the video is downloading |
| `preload` | `preload` | `"auto" \| "metadata" \| "none" \| undefined` | `'auto'` | Specifies if and how the author thinks the video should be loaded when the page loads. Note: The preload attribute is ignored if autoplay is present |
| `src` | `src` | `string \| undefined` | - | Specifies the URL of the video file |

## Slots

| Slot | Description |
| --- | --- |
| (default) | Write browser support missing message here. |
| `content` | Add video content overlay here, add `text string`, `HTML elements` or `components` to this slot. |

## CSS custom properties

| Property | Description |
| --- | --- |
| `--mds-video-wall-video-fit` | Defines how the video content should scale to fit its container (e.g., cover, contain). |

Only these are public. Its other 3 are internal: they may change in any release, do not set them.
