Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}
}
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
};
/>
{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
};