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

> Web component msm-data-collection.

`msm-data-collection` is a web component built with Lit.

## Purpose

Use this component as a reusable UI building block.

## Usage

```html theme={null}
<msm-data-collection></msm-data-collection>
```

## Attributes / properties

| Name      | Type   | Default | Notes |
| --------- | ------ | ------- | ----- |
| `variant` | string | -       |       |

## Events

| Event               | detail                   | When |
| ------------------- | ------------------------ | ---- |
| `msm-array-updated` | `items`, `itemsAsString` |      |

### Usage

```html theme={null}
<msm-data-collection>
</msm-data-collection>

<script>
  const el = document.querySelector("msm-data-collection");
  el.addEventListener("msm-array-updated", (e) => {
    console.log(e.detail);
  });

</script>
```

## CSS parts

* `base`
* `frame`
* `helper`
* `label`

## Slots

No documented slots.

## Methods

No documented public methods.

## Notes

* Custom events bubble.
