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
Copy file name to clipboardExpand all lines: components/examples.mdx
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,23 @@ Common use cases:
15
15
16
16
On mobile devices, `<RequestExample>` and `<ResponseExample>` components display as regular code blocks and can be scrolled past.
17
17
18
+
<RequestExample>
19
+
20
+
```bash Request
21
+
curl --request POST \
22
+
--url https://dog-api.kinduff.com/api/facts
23
+
```
24
+
25
+
</RequestExample>
26
+
27
+
<ResponseExample>
28
+
29
+
```json Response
30
+
{ "status": "success" }
31
+
```
32
+
33
+
</ResponseExample>
34
+
18
35
## RequestExample
19
36
20
37
Use `<RequestExample>` to pins code examples in the right sidebar. This component works similarly to the [CodeGroup](/components/code-groups) component, but displays the code in the sidebar instead of inline.
0 commit comments