TheComputerM / svelte-materialify

A Material UI Design Component library for Svelte heavily inspired by vuetify.

Home Page:https://svelte-materialify.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Generating href attribute

gjovanov opened this issue · comments

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.

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>