diff --git a/src/Dropdown.js b/src/Dropdown.js index 40b2057..0fd7999 100644 --- a/src/Dropdown.js +++ b/src/Dropdown.js @@ -1,26 +1,33 @@ /* @flow */ -import React from 'react'; -import type {Node as ReactNode} from 'react'; -import PropTypes from 'prop-types'; +import React from "react"; +import type { Node as ReactNode } from "react"; +import PropTypes from "prop-types"; type Props = { - children?: ReactNode; + children?: ReactNode, + className?: string, + style?: Object, }; export default class Dropdown extends React.Component { static propTypes = { - children: PropTypes.node + children: PropTypes.node, + className: PropTypes.string, + style: PropTypes.object, }; render() { + var style = { + background: "white", + border: "1px solid rgba(0,0,0,.2)", + boxShadow: "0 2px 4px rgba(0,0,0,0.2)", + padding: "6px 0", + ...(this.props.style || {}), + }; + return ( -
+
{this.props.children}
);