MCPcopy Create free account
hub / github.com/better-auth/examples / onSelect

Function onSelect

nuxt-example/components/ui/carousel/useCarousel.ts:30–33  ·  view source on GitHub ↗
(api: CarouselApi)

Source from the content-addressed store, hash-verified

28 const canScrollPrev = ref(false);
29
30 function onSelect(api: CarouselApi) {
31 canScrollNext.value = api?.canScrollNext() || false;
32 canScrollPrev.value = api?.canScrollPrev() || false;
33 }
34
35 onMounted(() => {
36 if (!emblaApi.value) return;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected