Add on-click to SideNavigation item
This commit is contained in:
parent
684a915a30
commit
aaba6349e5
|
@ -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}">
|
||||
|
|
Loading…
Reference in New Issue