Skip to content

Latest commit

 

History

History

odo-responsive-attributes

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

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