Add on-click to SideNavigation item

This commit is contained in:
Rory Powell 2022-02-15 12:54:51 +00:00
parent 7242406c68
commit dbfc46c67d
1 changed files with 2 additions and 1 deletions

View File

@ -7,13 +7,14 @@
export let icon = ""
export let selected = false
export let disabled = false
export let onClick = undefined
</script>
<li
class="spectrum-SideNav-item"
class:is-selected={selected}
class:is-disabled={disabled}
on:click
on:click={onClick}
>
{#if heading}
<h2 class="spectrum-SideNav-heading" id="nav-heading-{heading}">