Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
vue-insta-stories
Advanced tools
<template>
<Stories :stories="items" />
</template>
<script>
import { Stories } from "vue-insta-stories";
export default {
components: { Stories },
data: () => ({
items: [
"https://picsum.photos/350/200/",
"https://picsum.photos/400/201/",
{
url: "https://file-examples-com.github.io/5mb.mp4",
type: "video",
},
]
})
};
</script>
Property | Type | Default | Description |
---|---|---|---|
stories | [String/Object] | required | An array of image urls or array of story objects (more info below) |
interval | Number | 2000 | Story duration in milliseconds |
isPaused | Boolean | false | Toggle the playing state |
currentIndex | Number | 0 | Set the current story index |
Events | |||
onStoryStart | Function(Number) | - | Callback when a story starts |
onStoryEnd | Function(Number) | - | Callback when a story ends |
onAllStoriesEnd | Function() | - | Callback when all stories in the array have ended |
Property | Description |
---|---|
url | The url of the resource, image or video. |
type | Optional. Type of the story. 'image'|'video' |
duration | Optional. Duration for which a story should persist. |
template | Optional. Renders story in a different template see more below. |
<template>
<Stories :stories="items">
<template #header>
<story-header />
</template>
</Stories>
</template>
<script>
import { Stories } from "vue-insta-stories";
export default {
components: { Stories },
data: () => ({
items: [ "https://picsum.photos/350/200/"]
})
};
</script>
<template>
<Stories :stories="items">
<template #pool="{story}">
<pool-story :story="story" class="flex-grow"></pool-story>
</template>
</Stories>
</template>
<script>
import { Stories } from "vue-insta-stories";
export default {
components: { Stories },
data: () => ({
items: [{ poolId: 23, template: "pool" }]
})
};
</script>
FAQs
Vue component for Instagram stories
The npm package vue-insta-stories receives a total of 95 weekly downloads. As such, vue-insta-stories popularity was classified as not popular.
We found that vue-insta-stories demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.