> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Layer action

> Layer Action (Experimental)

An action that a button can use to display a layer.

> [!WARNING]
>
> Layers are currently available for use in experimental form and may change behavior based on early adopter feedback.

## Properties

`type` - *"layer"*. Specifies the type of the action

`target` - *string*. The name of the [`layer`](https://docs.xbox.com/reference/system/touchadaptationkit/layout/game-streaming-touch-layer) that should be shown when the action is taken.

## Remarks

The **layer action** is used to allow the player to cause a layer to be displayed.

If the [`button`](https://docs.xbox.com/reference/system/touchadaptationkit/controls/game-streaming-touch-button) is a toggle button, the `layer` will be displayed until the `button` is pressed again.

## Sample

#### A toggle button that has a layer action to show the selectAbility layer

```JSON theme={null}
{
    "type": "button",
    "action": {
        "type": "layer",
        "target": "selectAbility"
    },
    "styles": {
        "default": {
            "faceImage": {
                "type": "icon",
                "value": "add"
            }
        }
    },
    "toggle" : true
}
```

## See Also

[Touch Adaptation Kit Reference](https://docs.xbox.com/build/core-features/common/game-streaming/game-streaming-touch-touch-adaptation-kit-overview.md)\
[Button](https://docs.xbox.com/reference/system/touchadaptationkit/controls/game-streaming-touch-button.md)\
[Layer](https://docs.xbox.com/reference/system/touchadaptationkit/layout/game-streaming-touch-layer.md)


## Related topics

- [Layer](https://docs.xbox.com/reference/system/touchadaptationkit/layout/game-streaming-touch-layer.md)
- [Action](https://docs.xbox.com/reference/system/touchadaptationkit/types/game-streaming-touch-action.md)
- [Touch Adaptation Kit (TAK) Reference](https://docs.xbox.com/build/core-features/common/game-streaming/game-streaming-touch-touch-adaptation-kit-overview.md)
- [Touch Adaptation Kit](https://docs.xbox.com/reference/system/touchadaptationkit/touchadaptationkit-reference.md)
- [Content](https://docs.xbox.com/reference/system/touchadaptationkit/layout/game-streaming-touch-layout-content.md)
