---
title: Behaviours
description: The attributes a page writes to wire up the platform's one controller,
  read off what that controller looks for.
sidebar:
  order: 17
---

The attributes a page writes to wire up the platform's one controller, read off what that controller looks for. Served over MCP as `vizitka://docs/behaviors`, and by `describe_vocabulary` with `topic=behaviors`.

## disclosure

```html
data-controller="disclosure" data-action="keydown.esc@window->disclosure#closeOnEscape"
```

## disclosure-control

A div is not focusable and not a button, so a control that is one has to say so — otherwise the menu is mouse-only.

```html
role="button" tabindex="0" aria-expanded="false" data-disclosure-target="control" data-action="click->disclosure#toggle keydown.enter->disclosure#toggle keydown.space->disclosure#toggle"
```

## disclosure-panel

```html
hidden data-disclosure-target="panel" data-action="click->disclosure#closeOnLink"
```

## disclosure-backdrop

```html
hidden data-disclosure-target="backdrop" data-action="click->disclosure#close"
```
