How to use the terra-application-layout.Utils.helpers function in terra-application-layout

To help you get started, we’ve selected a few terra-application-layout examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cerner / terra-dev-site / src / app / components / Extensions.jsx View on Github external
const Extensions = (props) => {
  const { children, layoutConfig } = props;
  const isCompactSize = Utils.helpers.isSizeCompact(layoutConfig.size);

  let containerProps = { className: cx('container') };
  if (isCompactSize) {
    containerProps = {
      className: cx('container-compact'),
    };
  }

  const wrappedChildren = React.Children.map(children, child => (
    <div>
      { child }
    </div>
  ));

  return (
    <div></div>

terra-application-layout

The Terra Application Layout is a responsive, themeable layout for building applications.

Apache-2.0
Latest version published 7 months ago

Package Health Score

54 / 100
Full package analysis