UNPKG

@ftrack/react-toolbox

Version:

A set of React components implementing Google's Material Design specification with the power of CSS Modules.

21 lines (16 loc) 448 B
import PropTypes from 'prop-types'; import React from 'react'; const factory = (ripple) => { const Thumb = ({onMouseDown, theme, ...other}) => ( <span role='thumb' className={theme.thumb} onMouseDown={onMouseDown} {...other} /> ); Thumb.propTypes = { children: PropTypes.any, theme: PropTypes.shape({ ripple: PropTypes.string, thumb: PropTypes.string }) }; return ripple(Thumb); }; export default factory;