import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; /** * @ngdoc react * @name Item * @description Component to encapsulate a list item */ export const Item: React.StatelessComponent = ( {children, noBg, noHover, shadow, activated, className, onClick, margin}, ) => (
{children}
); Item.propTypes = { children: PropTypes.node.isRequired, noBg: PropTypes.bool, noHover: PropTypes.bool, shadow: PropTypes.oneOf([1, 2, 3, 4]), activated: PropTypes.bool, className: PropTypes.string, onClick: PropTypes.func, margin: PropTypes.bool, }; Item.defaultProps = { noBg: false, noHover: false, margin: false, };