attributes
prop.
{% include '@bolt-components-menu/menu.twig' with {
items: [
{
content: 'Menu item 1 is a button',
},
{
content: 'Menu item 2 is a link with attributes',
url: 'https://google.com',
attributes: {
target: '_blank',
rel: 'noopener',
},
},
]
} only %}
<bolt-menu spacing="medium">
<bolt-menu-item>
Menu item 1 is a button
</bolt-menu-item>
<bolt-menu-item url="https://google.com" target="_blank" rel="noopener">
Menu item 2 is a link with attributes
</bolt-menu-item>
</bolt-menu>