zerolinesjs
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

Zerolines.js

Headless UI components without writing a single line of JavaScript.

Components

  • Tab
  • Modal
  • Dropdown
  • Drawer
  • Onetime content
  • ScrollTop

Usage

Add library from CDN, or download from Release Page on Github.

<script src="https://cdn.jsdelivr.net/npm/zerolinesjs@0.1.0/dist/index.js" crossorigin="anonymous"></script>
<link href="https://cdn.jsdelivr.net/npm/zerolinesjs@0.1.0/dist/style.min.css" rel="stylesheet" />

Simply attach roll and behavior to your styled HTML element with data-zl attribute. Here is the modal sample.

<button type="button" data-zl="modal-toggle target-[#modal1]">
  Modal Open
</button>
<div id="modal1" data-zl="modal-backdrop" zl-cloak>
  <div data-zl="modal-content move-down-md">
    <!-- Content Here -->
    <button data-zl="modal-dismiss">Cancel</button>
  </div>
</div>

License

Available under the MIT License.

Readme

Keywords

none

Package Sidebar

Install

npm i zerolinesjs

Weekly Downloads

1

Version

0.1.1

License

MIT

Unpacked Size

16.4 kB

Total Files

6

Last publish

Collaborators

  • shoyu777