diff options
| author | Haishan <[email protected]> | 2019-12-20 17:45:05 +0800 |
|---|---|---|
| committer | Haishan <[email protected]> | 2019-12-20 17:45:05 +0800 |
| commit | d81592ec970d207d4e37beb6c275ad6b77979e39 (patch) | |
| tree | 33aac796297864d95307f21d6a9aa790e3c33c09 /src/components/Button.js | |
| parent | 040c5de04a75415490f9c478d931b7707bfa2486 (diff) | |
feat: support proxy provider
Diffstat (limited to 'src/components/Button.js')
| -rw-r--r-- | src/components/Button.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/components/Button.js b/src/components/Button.js index f56049e..5b0365b 100644 --- a/src/components/Button.js +++ b/src/components/Button.js @@ -1,4 +1,5 @@ import React from 'react'; +import cx from 'classnames'; import s0 from 'c/Button.module.css'; const noop = () => {}; @@ -13,6 +14,14 @@ function Button({ children, label, onClick = noop }, ref) { ); } +export function ButtonPlain({ children, label, onClick = noop }) { + return ( + <button className={cx(s0.btn, s0.plain)} onClick={onClick}> + {children || label} + </button> + ); +} + function WithIcon({ text, icon, onClick = noop }, ref) { return ( <button className={s0.btn} ref={ref} onClick={onClick}> |
