This repository was archived by the owner on Jan 23, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +29
-4
lines changed
content/docs/components/divider Expand file tree Collapse file tree 2 files changed +29
-4
lines changed Original file line number Diff line number Diff line change @@ -47622,14 +47622,25 @@
4762247622 "hierarchy": { "lvl1": "Divider", "lvl2": "Usage", "lvl3": null }
4762347623 },
4762447624 {
47625- "content": "Divider Orientation ",
47625+ "content": "Changing the orientation ",
4762647626 "id": "//docs/components/divider/usage",
4762747627 "type": "lvl3",
47628- "url": "/docs/components/divider/usage#divider -orientation",
47628+ "url": "/docs/components/divider/usage#changing-the -orientation",
4762947629 "hierarchy": {
4763047630 "lvl1": "Divider",
4763147631 "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"
4763347644 }
4763447645 },
4763547646 {
Original file line number Diff line number Diff line change 2121< Divider / >
2222```
2323
24- ### Divider Orientation
24+ ### Changing the orientation
2525
2626Pass the ` orientation ` prop and set it to either ` horizontal ` or ` vertical ` .
2727
@@ -38,6 +38,20 @@ assigned a height.
3838< / Center>
3939```
4040
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+
4155## Composition
4256
4357``` jsx
You can’t perform that action at this time.
0 commit comments