@alpine-collective/toolkit-range

1.0.2 • Public • Published

$range

GitHub tag (latest by date) npm bundle size

A magic helper to generate an array containing a range of elements in Alpine.js.

Usage

Coming soon

Installation

This helper is part of alpine-collective/toolkit. If you have already installed the main library, you won't need to do anything else. If you desire to install the helper as a standalone packacage, follow the steps below.

CDN

Include the following <script> tag in the <head> of your document, before Alpine:

<script src="https://unpkg.com/@alpine-collective/toolkit-range@1.0.2/dist/cdn.min.js" defer></script>

or

<script src="https://cdn.jsdelivr.net/npm/@alpine-collective/toolkit-range@1.0.2/dist/cdn.min.js" defer></script>

NPM

If you would like to bundle the plugin yourself, install it via NPM:

npm install @alpine-collective/toolkit-range --save-dev

You can then register the plugin with Alpine:

import Alpine from 'alpinejs'
import Range from '@alpine-collective/toolkit-range'

Alpine.plugin(Range)

Alpine.start()

Readme

Keywords

none

Package Sidebar

Install

npm i @alpine-collective/toolkit-range

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

4.35 kB

Total Files

6

Last publish

Collaborators

  • simotod