You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ p_ "Box is a simple building block component. Lumi components default to building off of Box and generally expect their JSX arguments to be Box-compatible elements."
39
39
, p_ "A Box is essentially a div which defaults to a flex column. The most common flex settings are available as prop modifiers. Nested boxes will also stretch to fill their given space by default. If a component shouldn't grow beyond a specific size under any circumstances, be sure to give it a max-width!"
40
40
, vspace S24
41
41
, h2_ "Defaults"
42
-
, example $ lumiElement box
42
+
, example
43
+
$ box
43
44
$$$ exampleContent
44
45
, h2_ "Row"
45
-
, example $ lumiElement box
46
+
, example
47
+
$ box
46
48
$ _row
47
49
$$$ exampleContent
48
50
, h2_ "Align/justify"
49
-
, example $ lumiElement box
50
-
$ _row
51
+
, example
52
+
$ row
51
53
$ _alignSelf Stretch-- only necessary because `example` isn't a Box
52
54
$ _justify End
53
55
$$$ exampleContent
54
56
, h2_ "Space evenly"
55
-
, example $ lumiElement box
56
-
$ _row
57
+
, example
58
+
$ column
57
59
$ _alignSelf Stretch-- only necessary because `example` isn't a Box
Copy file name to clipboardExpand all lines: docs/Examples2/Clip.example.purs
+2-3Lines changed: 2 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,6 @@
1
1
moduleLumi.Components2.Examples.Clipwhere
2
2
3
3
importPrelude
4
-
importLumi.Components (lumiElement)
5
4
importLumi.Components.Example (example)
6
5
importLumi.Components.Spacing (Space(..), vspace)
7
6
importLumi.Components.Text (body_, p_)
@@ -11,14 +10,14 @@ import React.Basic (JSX)
11
10
12
11
docs::JSX
13
12
docs =
14
-
lumiElement box
13
+
box
15
14
_
16
15
{ content =
17
16
[ p_ "The Clip component wraps the provided content with a grey border and a \"Copy\" button, which copies the text content into the system clipboard."
18
17
, p_ "If clipboard access is not allowed or not supported the text will be left highlighted, allowing the user to press ctrl+c manually. Only the plain text content is copied, not the HTML."
19
18
, vspace S24
20
19
, example
21
-
$ lumiElement clip
20
+
$ clip
22
21
$ _ { content = [ body_ "someone@email.com" ] }
23
22
, p_ "The Clip behavior is also available as a React hook."
0 commit comments