
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
A modern Vue 3 UI component library with TypeScript support.
npm install velu --save
# or
pnpm add velu
# or
yarn add velu
// main.ts
import { createApp } from 'vue'
import Velu, { install } from 'velu'
import 'velu/style.css'
const app = createApp(App)
app.use(install)
<script setup lang="ts">
import { VirtualScroll } from 'velu'
import 'velu/style.css'
const items = ref(Array.from({ length: 10000 }, (_, i) => ({ id: i, name: `Item ${i}` })))
</script>
<template>
<VirtualScroll
:items="items"
:item-height="50"
:container-height="400"
@visible-change="onVisibleChange"
>
<template #default="{ item, index }">
<div class="item">
{{ index }}: {{ item.name }}
</div>
</template>
</VirtualScroll>
</template>
High-performance virtual scrolling component for rendering large lists.
| Prop | Type | Default | Description |
|---|---|---|---|
items | T[] | [] | Array of items to render |
itemHeight | number | - | Height of each item in pixels |
containerHeight | number | undefined | Max height of the container |
buffer | number | 5 | Number of items to render outside visible area |
| Event | Payload | Description |
|---|---|---|
visible-change | { start: number, end: number } | Fired when visible range changes |
| Slot | Props | Description |
|---|---|---|
default | { item: T, index: number } | Template for each item |
| Method | Parameters | Description |
|---|---|---|
scrollToIndex | (index: number) | Scroll to specific item index |
<template>
<VirtualScroll
:items="largeDataset"
:item-height="60"
:container-height="500"
:buffer="10"
@visible-change="handleVisibleChange"
>
<template #default="{ item, index }">
<div class="custom-item">
<h3>{{ item.title }}</h3>
<p>{{ item.description }}</p>
<small>Index: {{ index }}</small>
</div>
</template>
</VirtualScroll>
</template>
<script setup lang="ts">
import { ref } from 'vue'
import { VirtualScroll } from 'velu'
interface Item {
id: number
title: string
description: string
}
const largeDataset = ref<Item[]>(
Array.from({ length: 100000 }, (_, i) => ({
id: i,
title: `Item ${i}`,
description: `Description for item ${i}`
}))
)
const handleVisibleChange = ({ start, end }: { start: number; end: number }) => {
console.log(`Visible items: ${start} - ${end}`)
}
</script>
<style>
.custom-item {
padding: 15px;
border-bottom: 1px solid #eee;
}
</style>
Velu is written in TypeScript and provides full type definitions:
import type { VirtualScrollProps } from 'velu'
// Generic type support
interface MyItem {
id: number
name: string
}
const items: MyItem[] = [...]
Contributions are welcome! Please feel free to submit a Pull Request.
MIT
FAQs
A modern Vue 3 UI component library with TypeScript support
We found that velu demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.