mirror of
https://github.com/HSLdevcom/digitransit-ui
synced 2025-07-05 16:30:37 +02:00
16 lines
385 B
JavaScript
16 lines
385 B
JavaScript
import PropTypes from 'prop-types';
|
|
import React from 'react';
|
|
import cx from 'classnames';
|
|
|
|
export default function Card({ className, children }) {
|
|
return <div className={cx('card', className)}>{children}</div>;
|
|
}
|
|
|
|
Card.displayName = 'Card';
|
|
|
|
Card.propTypes = {
|
|
className: PropTypes.string,
|
|
children: PropTypes.node.isRequired,
|
|
};
|
|
|
|
Card.defaultProps = { className: undefined };
|