1.2.31 • Published 3 years ago

@rexlabs-spicerhaart/box v1.2.31

Weekly downloads
-
License
UNLICENSED
Repository
-
Last release
3 years ago

Box - Heidi Component

Box applies consistent configurable layout. Layout can be arbitrarily complex, and is provided to the application through a top-level LayoutProvider.

Box properties can reference layout properties via a string or array selector, mapping to traversal of the layout object passed through by the LayoutProvider. Properties can also be locally overridden with any value that does not map to a property on layout. The Box solves the following problems:

  • The reuse of a design system's rules is critical to a consistent UI experience
  • Heavy use of a primitive 'element' like Box, that pulls in the rules, makes this easier. Also easier to change en mass later
  • Design systems for apps usually vary between brands, so that end of the configuration is open ended

Development

Install dependencies

$ yarn

Available Commands

$ yarn start              # starts storybook, for visually testing box
$ yarn test               # runs all units tests
$ yarn test:watch         # runs unit tests when files change
$ yarn build              # bundles the package for production

Legal

Copyright © 2018 Rex Software All Rights Reserved.