@bryce-loskie/scrollbar
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

scrollbar

NPM version

Get Started

Install

pnpm i @bryce-loskie/scrollbar

Usage

<div p="4" w="50" overflow="auto">
  <div w="200">default horizontal scrollbar</div>
</div>

<div p="4" w="50" overflow="auto" scrollbar="foo">
  <div w="200">custom thumb color</div>
</div>

<script setup lang="ts">
import { defineScrollbar } from '@bryce-loskie/scrollbar'

defineScrollbar()

defineScrollbar({
  name: 'foo', // use with `scrollbar="foo"` attribute
  thumbColor: 'gray',
})
</script>

Todo

  • [x] thumb hover color
  • [x] dark mode
  • [x] minify generated css code

License

MIT License © 2022 guygubaby

Readme

Keywords

Package Sidebar

Install

npm i @bryce-loskie/scrollbar

Weekly Downloads

1

Version

0.2.0

License

MIT

Unpacked Size

16.8 kB

Total Files

7

Last publish

Collaborators

  • guygubaby