Skip to content

Commit

Permalink
next: make ref bindable for <Button /> (#798)
Browse files Browse the repository at this point in the history
  • Loading branch information
huntabyte authored Oct 23, 2024
1 parent 4d5ef14 commit 134f4a4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/thick-ligers-wonder.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"bits-ui": patch
---

fix(Button): make `ref` prop `$bindable`
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import type { ButtonRootProps } from "../types.js";
let { href, type, children, ref, ...restProps }: ButtonRootProps = $props();
let { href, type, children, ref = $bindable(), ...restProps }: ButtonRootProps = $props();
</script>

<svelte:element
Expand Down

0 comments on commit 134f4a4

Please sign in to comment.