-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #435 from ismail9k/feat-easily-customize-addons
Feat easily customize addons
- Loading branch information
Showing
80 changed files
with
6,254 additions
and
4,660 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pnpm test |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Addons | ||
|
||
Enhance the functionality of the carousel by adding more features to it/ | ||
|
||
## Navigation | ||
|
||
The **Navigation** addon provides **Next** and **Previous** buttons for navigating through the carousel. | ||
|
||
### How to Use It | ||
|
||
```vue {2,9} | ||
<script setup> | ||
import { Navigation as CarouselNavigation } from 'vue3-carousel' | ||
</script> | ||
<template> | ||
<Carousel v-bind="config"> | ||
... | ||
<template #addons> | ||
<CarouselNavigation /> | ||
</template> | ||
</Carousel> | ||
</template> | ||
``` | ||
|
||
## Pagination | ||
|
||
The **Pagination** addon adds pagination indicators to the carousel. | ||
|
||
```vue {2,9} | ||
<script setup> | ||
import { Pagination as CarouselPagination } from 'vue3-carousel' | ||
</script> | ||
<template> | ||
<Carousel v-bind="config"> | ||
... | ||
<template #addons> | ||
<CarouselPagination /> | ||
</template> | ||
</Carousel> | ||
</template> | ||
``` | ||
|
||
### Config | ||
|
||
| Prop | Default | Description | | ||
| ---------------- | ------- | ---------------------------- | | ||
| `disableOnClick` | false | Disables navigation on click | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,60 @@ | ||
# Examples | ||
|
||
If you're experiencing issues loading the live examples or you're browsing on a mobile device, visit the [Fallback Examples Page](/examples-fallback) for a better experience. | ||
|
||
## Basic | ||
|
||
A simple implementation of the carousel with default settings. | ||
|
||
<Example id="vue3-carousel-example-basic" /> | ||
|
||
## Wrap Around | ||
|
||
Demonstrates a carousel with continuous wrap-around functionality. | ||
|
||
<Example id="vue3-carousel-example-wrap-around" /> | ||
|
||
## Vertical | ||
|
||
Showcases a vertically scrolling carousel. Adjust the height to better fit your content. | ||
|
||
<Example id="vue3-carousel-example-vertical" :height="475" /> | ||
|
||
## Breakpoints | ||
|
||
<Example id="vue3-carousel-example-breakpoints" :height="300"></Example> | ||
An example of a responsive carousel with breakpoints for varying screen sizes. | ||
|
||
<Example id="vue3-carousel-example-breakpoints" :height="300" /> | ||
|
||
## Autoplay | ||
|
||
Illustrates the carousel with autoplay functionality enabled. | ||
|
||
<Example id="vue3-carousel-example-autoplay" /> | ||
|
||
## Active Classes | ||
|
||
An example highlighting active items with custom classes. | ||
|
||
<Example id="vue3-carousel-example-status-classes" /> | ||
|
||
## Custom Navigation | ||
|
||
A demonstration of the carousel with fully customizable navigation controls. | ||
|
||
<Example id="vue3-carousel-example-custom-navigation" :height="310" /> | ||
|
||
## Gallery | ||
|
||
Transforms the carousel into a gallery-style component. | ||
|
||
<Example id="vue3-carousel-example-gallery" :height="500" /> | ||
|
||
<script> | ||
import Example from './.vitepress/components/Example.vue'; | ||
export default { | ||
components: { | ||
Example, | ||
} | ||
} | ||
}, | ||
}; | ||
</script> |
Oops, something went wrong.