This repository was archived by the owner on Jan 23, 2024. It is now read-only.
File tree 2 files changed +29
-4
lines changed
content/docs/components/divider
2 files changed +29
-4
lines changed Original file line number Diff line number Diff line change @@ -47622,14 +47622,25 @@
47622
47622
"hierarchy": { "lvl1": "Divider", "lvl2": "Usage", "lvl3": null }
47623
47623
},
47624
47624
{
47625
- "content": "Divider Orientation ",
47625
+ "content": "Changing the orientation ",
47626
47626
"id": "//docs/components/divider/usage",
47627
47627
"type": "lvl3",
47628
- "url": "/docs/components/divider/usage#divider -orientation",
47628
+ "url": "/docs/components/divider/usage#changing-the -orientation",
47629
47629
"hierarchy": {
47630
47630
"lvl1": "Divider",
47631
47631
"lvl2": "Usage",
47632
- "lvl3": "Divider Orientation"
47632
+ "lvl3": "Changing the orientation"
47633
+ }
47634
+ },
47635
+ {
47636
+ "content": "Adding content within a Divider",
47637
+ "id": "//docs/components/divider/usage",
47638
+ "type": "lvl3",
47639
+ "url": "/docs/components/divider/usage#adding-content-within-a-divider",
47640
+ "hierarchy": {
47641
+ "lvl1": "Divider",
47642
+ "lvl2": "Changing the orientation",
47643
+ "lvl3": "Adding content within a Divider"
47633
47644
}
47634
47645
},
47635
47646
{
Original file line number Diff line number Diff line change 21
21
< Divider / >
22
22
```
23
23
24
- ### Divider Orientation
24
+ ### Changing the orientation
25
25
26
26
Pass the ` orientation ` prop and set it to either ` horizontal ` or ` vertical ` .
27
27
@@ -38,6 +38,20 @@ assigned a height.
38
38
< / Center>
39
39
```
40
40
41
+ ### Adding content within a Divider
42
+
43
+ In some cases, you might want to add content within a divider. To do this, you
44
+ can compose the Divider and AbsoluteCenter components.
45
+
46
+ ``` jsx
47
+ < Box position= ' relative' padding= ' 10' >
48
+ < Divider / >
49
+ < AbsoluteCenter bg= ' white' px= ' 4' >
50
+ Content
51
+ < / AbsoluteCenter>
52
+ < / Box>
53
+ ```
54
+
41
55
## Composition
42
56
43
57
``` jsx
You can’t perform that action at this time.
0 commit comments