Skip to content

Commit 3424e1e

Browse files
docs(editor-components): add navigation component (#4143)
1 parent 2c1a411 commit 3424e1e

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

components/docs-editor.mdx

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,44 @@ content:
1010

1111
## Buttons
1212

13+
### Navigation
14+
15+
🧩  This component uses a **Tag** style.
16+
17+
**Code example:**
18+
19+
```jsx
20+
<Navigation>
21+
<PreviousButton to="/">Previous</PreviousButton>
22+
<NextButton to="/">Next</NextButton>
23+
</Navigation>
24+
```
25+
**Render:**
26+
27+
<Navigation>
28+
<PreviousButton to="/">Previous</PreviousButton>
29+
<NextButton to="/">Next</NextButton>
30+
</Navigation>
31+
32+
#### Navigation with title
33+
34+
<Navigation title="See Also">
35+
<PreviousButton to="/">Previous</PreviousButton>
36+
<NextButton to="/">Next</NextButton>
37+
</Navigation>
38+
39+
#### Navigation with one button
40+
41+
<Navigation title="See Also">
42+
<PreviousButton to="/">Previous</PreviousButton>
43+
</Navigation>
44+
45+
<Navigation title="See Also">
46+
<NextButton to="/">Lorem ipsum dolor sit amet</NextButton>
47+
</Navigation>
48+
49+
---
50+
1351
### Steps & StepButton
1452

1553
🧩 &nbsp;This component uses a **Tag** style.

0 commit comments

Comments
 (0)