Skip to content

A React HOC to get the box model values of the root wrapper

License

Notifications You must be signed in to change notification settings

ksharifbd/react-box-model-getter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

react-box-model-getter

This is a React HOC to get the box model values of the root wrapper.

It takes follwing arguments as comma seperated strings in addition to the component -

  • height
  • width
  • borderWidth
  • borderTopWidth
  • borderBottomWidth
  • borderRightWidth
  • borderLeftWidth
  • padding
  • paddingTop
  • paddingBottom
  • paddingRight
  • paddingLeft
  • margin
  • marginTop
  • marginBottom
  • marginRight
  • marginLeft

Invalid arguments will throw a consol error.

How To Use

Please view this Codepen example

About

A React HOC to get the box model values of the root wrapper

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published