Skip to content

Commit

Permalink
feat: expose stateStore as prop
Browse files Browse the repository at this point in the history
  • Loading branch information
Not-Jayden committed Nov 19, 2023
1 parent a2da544 commit 769d9d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/cmdk/components/Command.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,13 @@
</script>

{#if asChild}
<slot {root} label={{ attrs: labelAttrs }} />
<slot {root} state={stateStore} label={{ attrs: labelAttrs }} />
{:else}
<div use:rootAction {...rootAttrs} {...$$restProps}>
<!-- svelte-ignore a11y-label-has-associated-control applied in attrs -->
<label {...labelAttrs}>
{label ?? ''}
</label>
<slot {root} label={{ attrs: labelAttrs }} />
<slot {root} state={stateStore} label={{ attrs: labelAttrs }} />
</div>
{/if}

0 comments on commit 769d9d7

Please sign in to comment.