-
-
Notifications
You must be signed in to change notification settings - Fork 177
Closed
Labels
bugSomething isn't workingSomething isn't workingcontributions welcomeOpen to contributionsOpen to contributions
Description
Describe the bug
| import { MenubarRootState } from "../menubar.svelte.js"; |
should be bindable based on doc menu.root's value.
shadcn-svelte also need it to be bindable
<script lang="ts">
import { Menubar } from "bits-ui";
let activeValue = $state("");
</script>
<button onclick={() => (activeValue = "menu-1")}>Open Menubar Menu</button>
<Menubar.Root bind:value={activeValue}>
<Menubar.Menu value="menu-1">
<!-- ... -->
</Menubar.Menu>
<Menubar.Menu value="menu-2">
<!-- ... -->
</Menubar.Menu>
</Menubar.Root>
Reproduction
Logs
-System Info
-Severity
annoyance
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingcontributions welcomeOpen to contributionsOpen to contributions