MCPcopy Index your code
hub / github.com/Lobos/react-ui / render

Method render

src/Button.js:42–64  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40 }
41
42 render() {
43 let status = this.props.status;
44 if (status) {
45 status = `rct-button-${status}`;
46 }
47
48 const className = classnames(
49 this.props.className,
50 getGrid(this.props.grid),
51 'rct-button',
52 status
53 );
54
55 return (
56 <button onClick={this.handleClick}
57 style={this.props.style}
58 disabled={this.state.disabled}
59 className={className}
60 type={this.props.type || 'button'}>
61 { this.state.show || this.props.children }
62 </button>
63 );
64 }
65}
66
67Button.propTypes = {

Callers

nothing calls this directly

Calls 1

getGridFunction · 0.90

Tested by

no test coverage detected