@coffeekraken/scrollbar-webcomponent

Simple webcomponent that let you skin the scrollbar as you want. It use internally the nice "simplebar" library

Usage no npm install needed!

<script type="module">
  import coffeekrakenScrollbarWebcomponent from 'https://cdn.skypack.dev/@coffeekraken/scrollbar-webcomponent';
</script>

README

Coffeekraken scrollbar webcomponent

npm npm npm

Simple webcomponent that let you skin the scrollbar as you want. It use internally the nice simplebar library

Features

  • Easily customize a scrollbar element
  • Automatically transfert the paddings apply on the element to the corresponding inner container to avoid visual issues

Table of content

  1. Install
  2. Get Started
  3. SCSS API
  4. Javascript API
  5. Coffeekraken

Install

npm install @coffeekraken/scrollbar-webcomponent --save

Get Started

First, import the component into your javascript file like so:

import ScrollbarWebcomponent from '@coffeekraken/scrollbar-webcomponent'

Then simply use it inside your html like so:

<ck-scrollbar style="height:300px">
    <!-- any content here... -->
</ck-scrollbar>

Coffeekraken

We are a young collective of front-end creative developers with one goal in mind. Build tools to make every team working day life better. This is our first and only concern. All our tools are build around that purpose. All what we provide are some cool tools that you can use the way you want. These tools features cover a large scope of the front-end workflow (styleguide generation, colors/fonts management, etc...). You can use only the parts that you need and let the rest aside...

Coffeekraken