Skip to content

✨ Viselect - A simple and lightweight library to add a visual way of selecting elements, just like on your Desktop. Zero dependencies, super small. Support for major frameworks.

License

Notifications You must be signed in to change notification settings

Shirtiny/selection

Repository files navigation

Logo

Visual dom-selection library

License MIT No dependencies Support me jsdelivr hits Build Status gzip size brotli size

Features 🤘

  • 🌟 Modern bundle
  • 🔩 Ultra tiny (only ~4kb)
  • 👌 Simple usage
  • ⚡ Highly optimized
  • ✔ Zero dependencies
  • 📱 Mobile / touch support
  • 🖱 Vertical and horizontal scroll support
Coming soon ✨
  • Vue wrapper
  • Preact / React wrapper

Getting started

Check out the documentation for the package you want to use:

Check out recipes for commonly asked questions and how to solve them using the standart library!

Browser support

This library will always have currentYear - 1 as its target. For 2021 for example the target will be ES2020. It always provides both a UMD (.js) and .mjs version. If you want to support legacy browsers, please use the feature of your bundler to transpile dependencie. In case of webpack and babel (give vite a try, it's awesome) you'll have to install corresponding plugins such as babel-plugin-proposal-optional-chaining and include the dependency from node_modules which is normally entirely excluded from being processed.

I do this to provide maximum flexibility and give those who target ESNext a chance to make full use of how this library is bundled. Everything else is just a matter of configuration :)

About

✨ Viselect - A simple and lightweight library to add a visual way of selecting elements, just like on your Desktop. Zero dependencies, super small. Support for major frameworks.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 72.6%
  • CSS 10.7%
  • JavaScript 7.5%
  • Vue 6.5%
  • HTML 2.7%