feat: use slot fallback content
so user could change navigation button icons
This commit is contained in:
parent
734079a1bc
commit
13c47ce50b
|
|
@ -23,6 +23,8 @@ const { orientation, canScrollNext, scrollNext } = useCarousel()
|
|||
variant="outline"
|
||||
@click="scrollNext"
|
||||
>
|
||||
<ChevronRight class="h-4 w-4 text-white stroke-white" />
|
||||
<slot>
|
||||
<ChevronRight class="h-4 w-4 text-current" />
|
||||
</slot>
|
||||
</Button>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -23,6 +23,8 @@ const { orientation, canScrollPrev, scrollPrev } = useCarousel()
|
|||
variant="outline"
|
||||
@click="scrollPrev"
|
||||
>
|
||||
<ChevronLeft class="h-4 w-4 text-white" />
|
||||
<slot>
|
||||
<ChevronLeft class="h-4 w-4 text-current" />
|
||||
</slot>
|
||||
</Button>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -23,6 +23,8 @@ const { orientation, canScrollNext, scrollNext } = useCarousel()
|
|||
variant="outline"
|
||||
@click="scrollNext"
|
||||
>
|
||||
<ChevronRightIcon class="h-4 w-4 text-white stroke-white" />
|
||||
<slot>
|
||||
<ChevronRightIcon class="h-4 w-4 text-current" />
|
||||
</slot>
|
||||
</Button>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -23,6 +23,8 @@ const { orientation, canScrollPrev, scrollPrev } = useCarousel()
|
|||
variant="outline"
|
||||
@click="scrollPrev"
|
||||
>
|
||||
<ChevronLeftIcon class="h-4 w-4 text-white" />
|
||||
<slot>
|
||||
<ChevronLeftIcon class="h-4 w-4 text-current" />
|
||||
</slot>
|
||||
</Button>
|
||||
</template>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user