Generating href attribute
gjovanov opened this issue · comments
Goran Jovanov commented
Hi there,
how can we generate:
- Either a
ListItem
- or
Button
with a
tag and href
attribute?
I was able to handle only on:click
+ programmatic navigation, but for SEO-friendly pages, it would be useful to generate:
<a href="...">
In Vuetify this is supported with either: to
, href
, nuxt
component attributes.
Any plan for supporting it?
Thanks.
Robert commented
In a menu the ListItem can be surrounded with an a
tag. Does this help? Just found that out myself.
<Menu hover>
<div slot="activator">
<Avatar>
<Icon path={mdiAccountCircleOutline} />
</Avatar>
</div>
<a href="/settings/company">
<ListItem>COMPANY SETTINGS</ListItem>
</a>
<a href="/settings/account">
<ListItem>ACCOUNT SETTINGS</ListItem>
</a>
</Menu>