Skip to content

Instantly share code, notes, and snippets.

@tavoohoh
Created December 3, 2024 21:29
Show Gist options
  • Select an option

  • Save tavoohoh/7d2007f5de581f23bc78337480c9225a to your computer and use it in GitHub Desktop.

Select an option

Save tavoohoh/7d2007f5de581f23bc78337480c9225a to your computer and use it in GitHub Desktop.
Drawer options with groups example
const MENU_OPTIONS = [
{
label: 'Home',
icon: '<svg>...</svg>',
route: '/home',
},
{
label: 'Appointments',
icon: '<svg>...</svg>',
route: '/appointments',
},
{
label: 'Search',
icon: '<svg>...</svg>',
route: '/search',
},
{
label: 'For You',
icon: '<svg>...</svg>',
route: '/for-you',
},
{
label: 'Support',
icon: '<svg>...</svg>',
route: '/support',
},
{
category: 'Account',
options: [
{
label: 'Payments',
icon: '<svg>...</svg>',
route: '/account/payments',
},
{
label: 'Profile',
icon: '<svg>...</svg>',
route: '/account/profile',
},
],
},
{
category: 'Security',
options: [
{
label: 'Change Password',
icon: '<svg>...</svg>',
route: '/security/change-password',
},
{
label: 'PIN Lock',
icon: '<svg>...</svg>',
route: '/security/pin-lock',
},
],
},
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment