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

> Web component msm-select.

`msm-select` is a web component built with Lit.

## Purpose

Render form inputs and UI controls.

## Usage

```html theme={null}
<msm-select value="msm-select"></msm-select>
```

## Attributes / properties

| Name       | Type         | Default | Notes |
| ---------- | ------------ | ------- | ----- |
| `theme`    | string       | -       |       |
| `type`     | MenuItemType | -       |       |
| `value`    | string       | -       |       |
| `selected` | boolean      | -       |       |

## Events

| Event             | detail              | When |
| ----------------- | ------------------- | ---- |
| `msm-item-change` | `label`, `selected` |      |

### Usage

```html theme={null}
<msm-select value="msm-select">
</msm-select>

<script>
  const el = document.querySelector("msm-select");
  el.addEventListener("msm-item-change", (e) => {
    console.log(e.detail);
  });

</script>
```

## CSS parts

* `base`
* `label`
* `prefix`
* `suffix`

## Slots

* `slot[name="prefix"]`
* `slot`
* `slot[name="suffix"]`

## Methods

* `validate()`

## Notes

* Custom events bubble.
