@odopod/odo-responsive-attributes
v1.1.1
Published
Parse data attributes with respect to their breakpoints.
Downloads
13
Readme
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.