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

24 lines (19 loc) 499 B
import React, { PropTypes } from 'react'; import ClassNames from 'classnames'; import style from './style'; const Card = ({children, className, raised, ...other}) => { const classes = ClassNames(style.card, { [style.raised]: raised }, className); return ( <div data-react-toolbox='card' className={classes} {...other}> {children} </div> ); }; Card.propTypes = { children: PropTypes.any, className: PropTypes.string, raised: PropTypes.bool }; export default Card;