How to use the hig-vanilla.Spacer.AvailableSizes 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 / packages / react / src / adapters / SpacerAdapter.js View on Github external
}
}

SpacerAdapter.propTypes = {
  /**
   * Inset width of the spacer
   */
  inset: PropTypes.oneOf(VanillaSpacer.AvailableSizes),
  /**
   * Type of the spacer ('stack' or 'inline')
   */
  type: PropTypes.oneOf(VanillaSpacer.AvailableTypes),
  /**
   * Width of the spacer (vertical if type is 'stack', horizontal if type is 'inline'
   */
  width: PropTypes.oneOf(VanillaSpacer.AvailableSizes),
  /**
   * Content to render within the spacer
   */
  children: PropTypes.node
};
github Autodesk / hig / packages / react / src / adapters / SpacerAdapter.js View on Github external
/>
            
              {this.props.children}
            
          
        )}
      
    );
  }
}

SpacerAdapter.propTypes = {
  /**
   * Inset width of the spacer
   */
  inset: PropTypes.oneOf(VanillaSpacer.AvailableSizes),
  /**
   * Type of the spacer ('stack' or 'inline')
   */
  type: PropTypes.oneOf(VanillaSpacer.AvailableTypes),
  /**
   * Width of the spacer (vertical if type is 'stack', horizontal if type is 'inline'
   */
  width: PropTypes.oneOf(VanillaSpacer.AvailableSizes),
  /**
   * Content to render within the spacer
   */
  children: PropTypes.node
};