Skip to content

Commit 1b3f563

Browse files
committed
docs: add usage of useTemplateRef for Vue 3.5+ in README
1 parent 997d498 commit 1b3f563

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ import { ref } from 'vue'
5555
5656
const bottomSheet = ref<InstanceType<typeof BottomSheet>>()
5757
58+
/* For vue 3.5+ you can use useTemplateRef() */
59+
const bottomSheet = useTemplateRef('bottomSheet')
60+
5861
const open = () => {
5962
bottomSheet.value.open()
6063
}

0 commit comments

Comments
 (0)