diff --git a/ui/src/components/toggle/index.js b/ui/src/components/toggle/index.js
index 1f0e6850..859a3983 100644
--- a/ui/src/components/toggle/index.js
+++ b/ui/src/components/toggle/index.js
@@ -5,34 +5,44 @@ const React = require('react');
const styles = require('./style.css');
const Toggle = ({
- off = false,
+ checked = false,
className,
style
}) => {
const tgl = classNames(
className,
- styles.toggle,
- off ? styles.off : styles.on,
+ styles.tgl,
+ checked ? styles.on : styles.off,
);
- const btn = classNames(
+ const input = classNames(
className,
- styles.btn
+ styles.input
+ );
+
+ const label = classNames(
+ className,
+ styles.label
);
return (
-
-
-
- {off ? 'Off' : 'On'}
-
+
);
};
Toggle.propTypes = {
+ checked: React.PropTypes.bool,
className: React.PropTypes.string,
- off: React.PropTypes.bool,
style: React.PropTypes.object
};
diff --git a/ui/src/components/toggle/readme.md b/ui/src/components/toggle/readme.md
index 12c1430b..ef30ac9c 100644
--- a/ui/src/components/toggle/readme.md
+++ b/ui/src/components/toggle/readme.md
@@ -1,4 +1,4 @@
-# `