
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
@m0ksem/vue-custom-scrollbar
Advanced tools
Custom scrollbar for vue3.
yarn add @m0ksem/vue-custom-scrollbar
// main.js
import '@m0ksem/vue-custom-scrollbar/css'
import { VueCustomScrollbar } from '@m0ksem/vue-custom-scrollbar'
...
app.component('scrollbar', VueCustomScrollbar)
For nuxt3, lib needs to be transpiled.
Name | Type | Description | Default |
---|---|---|---|
top | Boolean | Renders top scrollbar | false |
left | Boolean | Renders left scrollbar | false |
bottom | Boolean | Renders bottom scrollbar | false |
right | Boolean | Renders right scrollbar | false |
inner | Boolean | Renders scrollbar inside of container | false |
thickness | [String, Number] | Thichness of scrollbar | - |
color | String | Tumb color | '#9d4edd' |
trackColor | String | Scrollbar background color | '#3c096c' |
Name | Description | Bind |
---|---|---|
default | Content inside scrollbale container | - |
thumb | Thing that user need to move using mouse | ScrollbarSlotBind |
track | Scrollbar background | ScrollbarSlotBind |
type ScrollbarSlotBind = {
horizontal: boolean,
vertical: boolean,
placement: 'horizontal' | 'vertical',
focused: boolean
}
<script setup lang="ts">
import { VueCustomScrollbar } from '@m0ksem/vue-custom-scrollbar'
</script>
<template>
<VueCustomScrollbar style="height: 500px; width: 300px" thickness="16px" right bottom left top trackColor="transparent" inner>
<div class="test-long-thing" />
<template #thumb="{ placement, focused }">
<div
class="custom-thumb"
:class="{
[`custom-thumb--${placement}`]: true,
'custom-thumb--focused': focused
}"
/>
</template>
</VueCustomScrollbar>
</template>
<style lang="scss">
.test-long-thing {
background: linear-gradient(45deg, #10002b, #e0aaff);
overflow: auto;
resize: both;
height: 1000px;
width: 1000px;
}
.custom-thumb {
transition: all 0.5s ease;
&--horizontal {
background: linear-gradient(90deg, #480ca8, #4895ef);
}
&--vertical {
background: linear-gradient(0, #480ca8, #4895ef);
}
&--focused {
&.custom-thumb {
&--horizontal {
background: linear-gradient(90deg, #c307e4, #5c5af3);
}
&--vertical {
background: linear-gradient(0, #c307e4, #5c5af3);
}
}
}
}
</style>
FAQs
Custom scrollbar for vue3.
The npm package @m0ksem/vue-custom-scrollbar receives a total of 17 weekly downloads. As such, @m0ksem/vue-custom-scrollbar popularity was classified as not popular.
We found that @m0ksem/vue-custom-scrollbar demonstrated a not healthy version release cadence and project activity because the last version was released 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
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.