Skip to content

Commit

Permalink
docs(editor-components): add navigation component (#4143)
Browse files Browse the repository at this point in the history
  • Loading branch information
rachidBensaid authored Dec 24, 2024
1 parent 2c1a411 commit 3424e1e
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions components/docs-editor.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,44 @@ content:

## Buttons

### Navigation

🧩  This component uses a **Tag** style.

**Code example:**

```jsx
<Navigation>
<PreviousButton to="/">Previous</PreviousButton>
<NextButton to="/">Next</NextButton>
</Navigation>
```
**Render:**

<Navigation>
<PreviousButton to="/">Previous</PreviousButton>
<NextButton to="/">Next</NextButton>
</Navigation>

#### Navigation with title

<Navigation title="See Also">
<PreviousButton to="/">Previous</PreviousButton>
<NextButton to="/">Next</NextButton>
</Navigation>

#### Navigation with one button

<Navigation title="See Also">
<PreviousButton to="/">Previous</PreviousButton>
</Navigation>

<Navigation title="See Also">
<NextButton to="/">Lorem ipsum dolor sit amet</NextButton>
</Navigation>

---

### Steps & StepButton

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

0 comments on commit 3424e1e

Please sign in to comment.