> ## 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

> Web-компонент msm-images-upload.

`msm-images-upload` — web-компонент на Lit.

## Назначение

Отображение медиа (изображения/видео).

## Пример

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

## Атрибуты / свойства

| Имя         | Тип     | По умолчанию | Примечания    |
| ----------- | ------- | ------------ | ------------- |
| `image`     | string  | -            |               |
| `imageUrls` | array   | -            | property only |
| `required`  | boolean | -            |               |

## События

| Событие            | detail | Когда |
| ------------------ | ------ | ----- |
| `msm-image-upload` | -      |       |
| `msm-image-remove` | -      |       |

### Пример

```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

Документированных `part`-слотов нет.

## Слоты

Документированных слотов нет.

## Методы

* `validate()`

## Примечания

* Custom events bubble.
