wraptastic

1.3.1 • Public • Published

Wraptastic.js

npm version

Wraptastic.js is a simple JavaScript package that effortlessly helps you manage list wrapping and overflows.

demo

Features

  • Limits list wrapping to 1, 2, 3 or any other amount of lines.
  • Provides an optional counter for the amount of items that extend beyond the designated lines.
  • Automatically adjusts the visibility of your list items as you resize your browser window or container.

Quickstart

Installation

# npm
npm install wraptastic
# pnpm
pnpm add wraptastic
# yarn
yarn add wraptastic

All installation options

Usage

<div class="wraptastic">
  <div class="wraptastic-item">Item 1</div>
  <div class="wraptastic-item">Item 2</div>
  <div class="wraptastic-item">Item 3</div>
  <!--- etc -->
</div>

<script>
import Wraptastic from "wraptastic";

const wraptastic = new Wraptastic({
  // Configuration options
});
</script>

All configuration options

Documentation

Check out our online documentation to see what Wraptastic.js can do for you!

License

MIT

Package Sidebar

Install

npm i wraptastic

Weekly Downloads

5

Version

1.3.1

License

MIT

Unpacked Size

31.3 kB

Total Files

6

Last publish

Collaborators

  • j-jalving