@odopod/odo-responsive-attributes

1.1.1 • Public • Published

Odo Responsive Attributes

Parse data attributes with respect to their breakpoints.

Install

npm install @odopod/odo-responsive-attributes --save

Quick Start

import OdoResponsiveAttributes from '@odopod/odo-responsive-attributes';

clamper = new OdoResponsiveAttributes(document.getElementById('clamper'));
console.log(clamper.values); // Object with `xs`, `sm`, `md`, and `lg` keys.
console.log(clamper.currentValue); // Value based on the current breakpoint.

Documentation

Visit the Odo component directory for demos, code examples, and documentation.

Package Sidebar

Install

npm i @odopod/odo-responsive-attributes

Weekly Downloads

1

Version

1.1.1

License

MIT

Unpacked Size

24.4 kB

Total Files

17

Last publish

Collaborators

  • nathanbuchar
  • odopod-admin
  • vestride