UNPKG

react-toolbox-build4server

Version:

Builds react-toolbox in such a way that it's components can be required and used in node - most likely for server-side rendered webapps - without having to depend on webpack to build your entire server-side project

19 lines (15 loc) 414 B
import React, { PropTypes } from 'react'; import Ripple from '../ripple'; import style from './style'; const Thumb = ({children, onMouseDown}) => ( <span role='thumb' className={style.thumb} onMouseDown={onMouseDown}>{children}</span> ); Thumb.propTypes = { children: PropTypes.any }; export default Ripple({ className: style.ripple, spread: 2.6, centered: true })(Thumb); export {Thumb as RawThumb};