feat(web/menu): add description support on list items

This commit is contained in:
Luke
2022-10-27 10:09:48 +02:00
parent b354e0836c
commit 1127108fcd
5 changed files with 20 additions and 6 deletions

View File

@@ -6,7 +6,7 @@ type ChangeFunction = (selected: number, scrollIndex: number | null, args: any |
interface MenuOptions {
label: string;
icon?: IconName | [IconPrefix, IconName];
values?: string[];
values?: Array<string | { label: string; description: string }>;
description?: string;
defaultIndex?: number;
args?: any;