{
+ const render = (value) => {
+ return (
+
+
+
+
+
+
+ );
+ };
+
+ return (
+
+ {render}
+
+ );
+});
+
+export default Baseline(
+ Toggle
+);
+
+export const ToggleList = Baseline(
+ StyledUl
+);
diff --git a/ui/src/components/form/toggle/story.js b/ui/src/components/form/toggle/story.js
new file mode 100644
index 00000000..90039d6c
--- /dev/null
+++ b/ui/src/components/form/toggle/story.js
@@ -0,0 +1,190 @@
+import { storiesOf } from '@kadira/storybook';
+import React from 'react';
+import Legend from '../legend';
+import Toggle, { ToggleList } from '../toggle';
+import FormGroup from '../group';
+import FormMeta from '../meta';
+
+storiesOf('Toggle', module)
+.add('Default', () => (
+
+
+
+ Video
+ TV
+ Netflix
+
+
+ ))
+ .add('Selected', () => (
+
+
+
+ Video
+ TV
+ Netflix
+
+
+ ))
+ .add('Two items', () => (
+
+
+
+ TV
+ Netflix
+
+
+ ))
+ .add('Disabled', () => (
+
+
+
+ Video
+ TV
+ Netflix
+
+
+ ))
+ .add('Error', () => (
+
+
+
+
+
+ Video
+ TV
+ Netflix
+
+
+
+
+
+
+ Video
+ TV
+ Netflix
+
+
+ {/* eslint-disable object-curly-newline */}
+
+ {/* eslint-enable object-curly-newline */}
+
+
+
+ Video
+ TV
+ Netflix
+
+
+
+
+
+ Unexpected children error!
+
+
+ Video
+ TV
+ Netflix
+
+
+
+ ))
+ .add('Warning', () => (
+
+
+
+
+
+ Video
+ TV
+ Netflix
+
+
+
+
+
+
+ Video
+ TV
+ Netflix
+
+
+ {/* eslint-disable object-curly-newline */}
+
+ {/* eslint-enable object-curly-newline */}
+
+
+
+ Video
+ TV
+ Netflix
+
+
+
+
+
+ Unexpected children warning!
+
+
+ Video
+ TV
+ Netflix
+
+
+
+ ))
+ .add('Success', () => (
+
+
+
+
+
+ Video
+ TV
+ Netflix
+
+
+
+
+
+
+ Video
+ TV
+ Netflix
+
+
+ {/* eslint-disable object-curly-newline */}
+
+ {/* eslint-enable object-curly-newline */}
+
+
+
+ Video
+ TV
+ Netflix
+
+
+
+
+
+ Unexpected children success!
+
+
+ Video
+ TV
+ Netflix
+
+
+
+ ))
+ .add('Base meta', () => (
+
+
+ I'm a children of meta
+
+ Video
+ TV
+ Netflix
+
+
+ ));
diff --git a/ui/src/components/toggle/story.js b/ui/src/components/toggle/story.js
index 6c685ab0..05b28bc5 100644
--- a/ui/src/components/toggle/story.js
+++ b/ui/src/components/toggle/story.js
@@ -1,4 +1,4 @@
-import React from 'react';
+/*import React from 'react';
import { storiesOf } from '@kadira/storybook';
import Toggle from './';
@@ -20,4 +20,4 @@ storiesOf('Toggle', module)
))
.add('no props', () => (
- ));
+ ));*/