JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3004465
  • Score
    100M100P100Q263497F
  • License MIT

Returns the css box model for a HTMLElement

Package Exports

  • css-box-model

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (css-box-model) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

CSS box model 📦

Get the CSS box model from a HTMLElement

Work in progress ⚠️

Installation

yarn add css-box-model

Usage

// @flow
import getBoxModel, { type BoxModel } from 'css-box-model';

const el: HTMLElement = document.getElementById('foo');
const box: BoxModel = getBoxModel(el);

// profit