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

> Build a select element from items

`<msm:select>` builds a native HTML `<select>` by rendering options from items.

## Skeleton

```html theme={null}
<msm:select id="country" mode="DIRECT" items='[{"value":"DE","label":"Germany"},{"value":"US","label":"USA"}]'>
  <msm:template>
    <option value="${value}">${label}</option>
  </msm:template>
</msm:select>
```

## Common attributes

| Attribute                    | Meaning                                                             |
| ---------------------------- | ------------------------------------------------------------------- |
| `mode`                       | Data source mode (e.g. `DATABASE`, `BEAN`, `REPOSITORY`, `DIRECT`). |
| `selected` / `selectedValue` | How the selected option is determined.                              |
| `item-name`                  | Variable prefix for each option item.                               |
