> For the complete documentation index, see [llms.txt](https://docs.emobiq.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.emobiq.com/emobiq-client/006-actions-and-visual-logic/action-reference/cordova/app/displaysnippet.md).

# displaySnippet

## Description

Displays or hides a snippet component in the application.

### Platform Supported

* Mobile
* Web

## Input / Parameter

| Name    | Description                                                                                                                        | Input Type | Default | Options     | Required |
| ------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------- | ------- | ----------- | -------- |
| snippet | The snippet component name to be used.                                                                                             | Text       | -       | -           | Yes      |
| show    | To show or hide snippet.                                                                                                           | Boolean    | false   | true, false | Yes      |
| overlay | To make sure that it precedes the current page. It works like [z-index](https://developer.mozilla.org/en-US/docs/Web/CSS/z-index). | Boolean    | true    | true, false | Yes      |

## Output

Note: The snippet will be displayed or hidden based on the action chosen.
