Skip to content

Commit 348cef0

Browse files
committed
updated element name
1 parent 2554d42 commit 348cef0

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Whether you’re building infinite feeds, carousels, media galleries, or dashboa
3232

3333
## 🖼️ Gallery Web Component
3434

35-
The `vue-gallery` is a web component built on top of the Carousel component that provides an easy way to display a gallery of images with features like lazy loading, responsive layout, and dynamic sizing. It's designed to efficiently handle large collections of images while maintaining smooth performance.
35+
The `gallery-ce` is a web component built on top of the Carousel component that provides an easy way to display a gallery of images with features like lazy loading, responsive layout, and dynamic sizing. It's designed to efficiently handle large collections of images while maintaining smooth performance.
3636

3737
- **Easy to use**: Suitable when you have a big static list of images you want to browse
3838
- **Framework agnostic**: Can be used without Vue in any framework or vanilla JavaScript
@@ -44,7 +44,7 @@ The `vue-gallery` is a web component built on top of the Carousel component that
4444
#### Plain JavaScript
4545

4646
```html
47-
<vue-gallery id="gallery" height="400px" num-cols-to-show="3"></vue-gallery>
47+
<gallery-ce id="gallery" height="400px" num-cols-to-show="3"></gallery-ce>
4848

4949
<script type="module">
5050
import { registerElements } from 'vue-infinity';
@@ -80,7 +80,7 @@ function Gallery() {
8080
}
8181
}, []);
8282

83-
return <vue-gallery ref={galleryRef} height="400px" num-cols-to-show="3" />;
83+
return <gallery-ce ref={galleryRef} height="400px" num-cols-to-show="3" />;
8484
}
8585
```
8686

@@ -104,14 +104,14 @@ function Gallery() {
104104
});
105105
</script>
106106
107-
<vue-gallery bind:this={gallery} height="400px" num-cols-to-show="3" />
107+
<gallery-ce bind:this={gallery} height="400px" num-cols-to-show="3" />
108108
```
109109

110110
#### Vue
111111

112112
```vue
113113
<template>
114-
<vue-gallery ref="galleryRef" height="400px" :num-cols-to-show="3" />
114+
<gallery-ce ref="galleryRef" height="400px" :num-cols-to-show="3" />
115115
</template>
116116
117117
<script setup>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-infinity",
3-
"version": "0.8.1",
3+
"version": "0.8.2",
44
"main": "dist/vue-infinity.umd.js",
55
"module": "dist/vue-infinity.es.js",
66
"type": "module",

playground/GalleryDemo.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div class="gallery-demo">
3-
<vue-gallery
3+
<gallery-ce
44
ref="galleryRef"
55
:items="JSON.stringify([])"
66
height="43vh"

src/elements.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ export { Gallery }
1010

1111
export function registerElements() {
1212
// Register custom elements
13-
customElements.define('vue-gallery', Gallery)
13+
customElements.define('gallery-ce', Gallery)
1414
}

0 commit comments

Comments
 (0)