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.