1import React from 'react';
2import PropTypes from 'prop-types';
3import { getDomProps } from '../../lib/base';
5const ProtoButton = props => {
8 {...getDomProps(props)}
9 className={`${props.className} sans`}
12 onClick={props.onClick}
13 disabled={props.disabled}
14 autoFocus={props.autoFocus}>
20ProtoButton.propTypes = {
21 disabled: PropTypes.bool,
22 onClick: PropTypes.func,
23 className: PropTypes.string,
24 children: PropTypes.node,
25 autofocus: PropTypes.bool,
26 style: PropTypes.object,
27 type: PropTypes.oneOf(['button', 'submit', 'reset']),
30ProtoButton.defaultProps = {
39export default ProtoButton;
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list