-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathButtonGroup.example.purs
76 lines (73 loc) · 2.19 KB
/
ButtonGroup.example.purs
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
module Lumi.Components.Examples.ButtonGroup where
import Prelude
import Effect.Console (log)
import Effect.Uncurried (mkEffectFn1)
import Lumi.Components.Button (button, primary, secondary)
import Lumi.Components.ButtonGroup (buttonGroup)
import Lumi.Components.Column (column_)
import Lumi.Components.NativeSelect (nativeSelect, defaults)
import Lumi.Components.Text (h2_)
import Lumi.Components.Example (example)
import React.Basic.Classic (JSX)
import React.Basic.DOM as R
docs :: JSX
docs =
column_
[ h2_ "Not Joined"
, example
$ buttonGroup
{ joined: false
, style: R.css {}
, children:
[ button primary { title = "Button" }
, button secondary { title = "Button" }
]
}
, h2_ "Not Joined"
, example
$ buttonGroup
{ joined: false
, style: R.css {}
, children:
[ button primary { title = "Button" }
, button secondary { title = "Button" }
, button secondary { title = "Button" }
]
}
, h2_ "Not Joined"
, example
$ buttonGroup
{ joined: false
, style: R.css {}
, children:
[ button primary { title = "Button" }
, nativeSelect defaults
{ options = []
, onChange = mkEffectFn1 \_ -> log "onChange"
, value = "Foo bar"
}
, button secondary { title = "Button" }
]
}
, h2_ "Joined"
, example
$ buttonGroup
{ joined: true
, style: R.css {}
, children:
[ button secondary { title = "Button" }
, button secondary { title = "Button" }
]
}
, h2_ "Joined"
, example
$ buttonGroup
{ joined: true
, style: R.css {}
, children:
[ button secondary { title = "Button" }
, button secondary { title = "Button" }
, button secondary { title = "Button" }
]
}
]