blob: 1f1ab20368618840d47e158a424cb722a6deaaaf (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
import { H1, H2, H3, H4 } from '@meetfranz/ui';
import { storiesOf } from '../stores/stories';
// interface IStoreArgs {
// value?: boolean;
// checked?: boolean;
// label?: string;
// id?: string;
// name?: string;
// disabled?: boolean;
// error?: string;
// }
// const createStore = (args?: IStoreArgs) => {
// return observable(Object.assign({
// id: `element-${uuid()}`,
// name: 'toggle',
// label: 'Label',
// value: true,
// checked: false,
// disabled: false,
// error: '',
// }, args));
// };
// const WithStoreToggle = observer(({ store }: { store: any }) => (
// <>
// <Toggle
// value={store.value}
// checked={store.checked}
// label={store.label}
// id={store.id}
// name={store.name}
// disabled={store.disabled}
// error={store.error}
// onChange={() => store.checked = !store.checked}
// />
// </>
// ));
storiesOf('Typo')
.add('Headlines', () => (
<>
<H1>Welcome to the world of tomorrow</H1>
<H2>Welcome to the world of tomorrow</H2>
<H3>Welcome to the world of tomorrow</H3>
<H4>Welcome to the world of tomorrow</H4>
</>
));
|