> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mastermindcms.com/llms.txt
> Use this file to discover all available pages before exploring further.

# msm-images-upload

> Upload UI component.

`msm-images-upload` is a web component built with Lit.

## Purpose

Render media content (images/video).

## Usage

```html theme={null}
<msm-images-upload></msm-images-upload>
```

## Attributes / properties

| Name        | Type    | Default | Notes         |
| ----------- | ------- | ------- | ------------- |
| `image`     | string  | -       |               |
| `imageUrls` | array   | -       | property only |
| `required`  | boolean | -       |               |

## Events

| Event              | detail | When |
| ------------------ | ------ | ---- |
| `msm-image-upload` | -      |      |
| `msm-image-remove` | -      |      |

### Usage

```html theme={null}
<msm-images-upload>
</msm-images-upload>

<script>
  const el = document.querySelector("msm-images-upload");
  el.addEventListener("msm-image-upload", (e) => {
    console.log(e.detail);
  });

  el.addEventListener("msm-image-remove", (e) => {
    console.log(e.detail);
  });

</script>
```

## CSS parts

No documented `part` slots.

## Slots

No documented slots.

## Methods

* `validate()`

## Notes

* Custom events bubble.
