Skip to content
This repository has been archived by the owner on Sep 26, 2022. It is now read-only.

Generating href attribute #215

Open
gjovanov opened this issue Apr 12, 2021 · 1 comment
Open

Generating href attribute #215

gjovanov opened this issue Apr 12, 2021 · 1 comment

Comments

@gjovanov
Copy link

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.

@robsch
Copy link

robsch commented Apr 16, 2021

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>

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants