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

> Web-компонент msm-form-field.

`msm-form-field` — web-компонент на Lit.

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

Поля форм и элементы управления.

## Пример

```html theme={null}
<msm-form-field></msm-form-field>
```

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

| Имя       | Тип     | По умолчанию | Примечания |
| --------- | ------- | ------------ | ---------- |
| `title`   | string  | -            |            |
| `item`    | object  | -            |            |
| `checked` | boolean | `false`      |            |

## События

| Событие            | detail    | Когда |
| ------------------ | --------- | ----- |
| `msm-field-change` | `deleted` |       |

### Пример

```html theme={null}
<msm-form-field>
</msm-form-field>

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

</script>
```

## CSS parts

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

## Слоты

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

## Методы

* `validate()`
