Completely updated React, fixed #11, (hopefully)

This commit is contained in:
2018-03-04 19:11:49 -05:00
parent 6e0afd6e2a
commit 34e5f5139a
13674 changed files with 333464 additions and 473223 deletions

View File

@@ -1,30 +1,26 @@
// @flow
// @inheritedComponent Paper
import React from 'react';
import PropTypes from 'prop-types';
import Paper from '../Paper';
type ProvidedProps = {
raised: boolean,
};
export type Props = {
/**
* @ignore
*/
className?: string,
/**
* If `true`, the card will use raised styling.
*/
raised?: boolean,
};
function Card(props: ProvidedProps & Props) {
function Card(props) {
const { raised, ...other } = props;
return <Paper elevation={raised ? 8 : 2} {...other} />;
}
Card.propTypes = {
/**
* @ignore
*/
className: PropTypes.string,
/**
* If `true`, the card will use raised styling.
*/
raised: PropTypes.bool,
};
Card.defaultProps = {
raised: false,
};