feat(web/context): allow displaying icons in context menu items

This commit is contained in:
Luke
2022-07-07 14:53:36 +02:00
parent 92023227cd
commit 4fc6366801
3 changed files with 20 additions and 0 deletions

View File

@@ -17,11 +17,13 @@ debugData<ContextMenuProps>([
{
title: "Example button",
description: "Example button description",
icon: "inbox",
image: "https://i.imgur.com/YAe7k17.jpeg",
metadata: [{ label: "Value 1", value: 300 }],
},
{
title: "Menu button",
icon: "bars",
menu: "other_example_menu",
description: "Takes you to another menu",
metadata: ["It also has metadata support"],
@@ -29,6 +31,7 @@ debugData<ContextMenuProps>([
{
title: "Event button",
description: "Open a menu and send event data",
icon: "check",
arrow: true,
event: "some_event",
args: { value1: 300, value2: "Other value" },