2.0.0 • Published 2 months ago

vue-scrollable-container v2.0.0

Weekly downloads
27
License
MIT
Repository
github
Last release
2 months ago

vue-scrollable-container

A Vue.js component to show scrollable hint.

From v2.0.0, it works for Vue 3.

Demo

Demo

Install

Browser

<script src="vue.global.prod.js"></script>
<script src="https://unpkg.com/throttle-debounce@5/umd/index.js"></script>
<script src="vue-scrollable-container.umd.js"></script>

npm

npm install --save vue-scrollable-container

Usage

Browser

<div id="app">
  <scrollable-container>
    Something
  </scrollable-container>
</div>

<script src="vue.global.prod.js"></script>
<script src="https://unpkg.com/throttle-debounce@5/umd/index.js"></script>
<script src="vue-scrollable-container.umd.js"></script>
<script>
const { createApp } = Vue;
const { ScrollableContainer } = SwsVueScrollableContainer;

createApp({
  components: {
    ScrollableContainer,
  },
}).mount('#app');
</script>

SFC (TypeScript)

<template>
  <scrollable-container>
    Something
  </scrollable-container>
</template>

<script setup lang="ts">
import { ScrollableContainer } from 'vue-scrollable-container';
</script>

Props

PropsTypeDefaultDescription
sizeNumber100Notification box size(px)
themeString"light"Inner content theme color
labelString"scrollable"Notification text
is-verticalBooleanfalseScroll direction
shadow-from-xString"0"Left position of first shadow
shadow-to-xString"0"Right position of last shadow

License

MIT

Author

inotom

2.0.0

2 months ago

2.0.0-beta.2

3 months ago

2.0.0-beta.1

3 months ago

1.8.2

5 years ago

1.8.1

5 years ago

1.8.0

5 years ago

1.7.0

5 years ago

1.6.0

5 years ago

1.5.0

5 years ago

1.4.0

5 years ago

1.3.0

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.2

6 years ago

1.0.0

6 years ago