diff options
author | Vitaly Takmazov | 2018-11-22 13:02:55 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-13 10:37:53 +0300 |
commit | e6f0888dc7cbecd0fd186b3c3bd70e557a92413c (patch) | |
tree | f1d51e578de2e55d56cac5554e2d8e711d0e16bf /vnext/src/components/Button.js | |
parent | a799b4ffe210a77a64117e1437c026bd771e3ac7 (diff) |
Component styling in CSS
Diffstat (limited to 'vnext/src/components/Button.js')
-rw-r--r-- | vnext/src/components/Button.js | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/vnext/src/components/Button.js b/vnext/src/components/Button.js index 11887d41..4152108b 100644 --- a/vnext/src/components/Button.js +++ b/vnext/src/components/Button.js @@ -1,18 +1,9 @@ import React from 'react'; +import './Button.css'; + export default function Button(props) { return ( - <button style={buttonStyle} {...props} /> + <button className="Button" {...props} /> ); } - -const buttonStyle = { - background: '#fff', - fontSize: '12px', - border: '1px solid #eee', - color: '#888', - cursor: 'pointer', - display: 'inline-block', - margin: '5px', - padding: '2px 10px' -}; |