Skip to content

Commit

Permalink
feat: Add example of custom icon on the right for menu component
Browse files Browse the repository at this point in the history
  • Loading branch information
afonsobspinto committed Sep 1, 2023
1 parent 5464af6 commit ead66cb
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion geppetto-showcase/src/examples/menu/menuConfiguration.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react';

const toolbarMenu = {
global: {
buttonsStyle: {
Expand Down Expand Up @@ -122,7 +124,14 @@ const toolbarMenu = {
},
},
{
label: 'Feedback',
label: (
<>
Feedback
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none">
<path d="M7.32911 13.2291L3.85411 9.75414L2.67078 10.9291L7.32911 15.5875L17.3291 5.58748L16.1541 4.41248L7.32911 13.2291Z" fill="#5A48E6"/>
</svg>
</>
),
icon: '',
action: {
handlerAction: 'clickFeedback',
Expand Down

0 comments on commit ead66cb

Please sign in to comment.