> For the complete documentation index, see [llms.txt](https://platform.slapdash.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://platform.slapdash.com/command-tutorials/emoji-paster.md).

# Emoji Paster

![](/files/-Mdrd6q7PKyz1zprpFuM)

This command illustrates how to return an interactive [List view](/reference/command-response-view-list.md). In this case, we visualize emojis and their names. As you type, the command matches the emoji name. When you hit **Enter**, the command pastes the selected emoji in the active app.

In this example, you'll also notice that you can use an emoji as a custom icon for an [Option](/reference/command-response-view-list.md#listoption).

```javascript
/**
 * A command that shows a selection of emojis and pastes
 * the selected emoji on pressing Enter.
 */
const response = {
  view: {
    type: "list",
    options: [
      {
        title: "Heart",
        action: {
          type: "paste",
          value: "❤️",
        },
        icon: "❤️",
      },
      {
        title: "Star",
        action: {
          type: "paste",
          value: "⭐️",
        },
        icon: "⭐️",
      },
      {
        title: "Lightning",
        action: {
          type: "paste",
          value: "️⚡️",
        },
        icon: "⚡️",
      },
    ],
  },
};

console.log(JSON.stringify(response));
```

[See on Github](https://github.com/slapdash/platform/tree/main/tutorials/emoji-paster)
