summaryrefslogtreecommitdiff
path: root/src/components/Button.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/Button.js')
-rw-r--r--src/components/Button.js9
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}>