Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit 093aacc

Browse files
Merge pull request #453 from ejirocodes/patch-2
feat: Add isOpen to Vue data object and use to conditionally render chevron…
2 parents 5eb20af + b52d53f commit 093aacc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

website/pages/menu.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ the Menu component. `isOpen` reflects the current open or closed state of the `C
7070
```vue live=true
7171
<template>
7272
<c-menu v-slot="{ isOpen }">
73-
<c-menu-button :is-active="isOpen" right-icon="chevron-down">
73+
<c-menu-button :is-active="isOpen" :right-icon="isOpen ? 'chevron-up' : 'chevron-down'">
7474
{{ isOpen ? 'Close' : 'Open' }}
7575
</c-menu-button>
7676
<c-menu-list>

0 commit comments

Comments
 (0)