How to use the hig-vanilla.Spacer function in hig-vanilla

To help you get started, we’ve selected a few hig-vanilla 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 Autodesk / hig / src / implementations / react / src / adapters / NewSpacerAdapter.js View on Github external
function SpacerAdapter(props) {
  return (
    
      {(adapterProps) => (
        <div>
          
          
          
          
            {props.children}
          
        </div>
      )}
    
  );
}
github Autodesk / hig / src / implementations / react / src / adapters / NewSpacerAdapter.js View on Github external
{(adapterProps) =&gt; (
        <div>
          
          
          
          
            {props.children}
          
        </div>
      )}
    
  );
}

SpacerAdapter.propTypes = {
  inset: PropTypes.oneOf(HIG.Spacer.AvailableSizes),
  type: PropTypes.oneOf(HIG.Spacer.AvailableTypes),
  width: PropTypes.oneOf(HIG.Spacer.AvailableSizes),
  children: PropTypes.node
}

export default SpacerAdapter;