Skip to content

Commit 68b1b89

Browse files
committed
Update with examples
1 parent 26c290b commit 68b1b89

File tree

3 files changed

+31
-4
lines changed

3 files changed

+31
-4
lines changed

content/components/callouts.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,11 @@ Callouts can be styled as a Note, Warning, Info, Tip, or Check:
4444
```jsx
4545
<Check>This brings us a checked status</Check>
4646
```
47+
48+
<RequestExample>
49+
50+
```jsx Callout Example
51+
<Note>This adds a note in the content</Note>
52+
```
53+
54+
</RequestExample>

content/components/responses.mdx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,13 @@ The `<ResponseField>` component is designed to define the return values of an AP
4444
<ResponseField name="post" type="string[]">
4545
Labels that are shown after the name of the field
4646
</ResponseField>
47+
48+
<RequestExample>
49+
50+
```jsx Response Field Example
51+
<ResponseField name="response" type="string" required>
52+
A response field example
53+
</ResponseField>
54+
```
55+
56+
</RequestExample>

content/components/update.mdx

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: "Keep track of changes and updates"
55

66
The `Update` component is used to keep track of changes and updates.
77

8-
<Update label="2024-10-12" description="v0.1.1" tags={["Filter 1"]}>
8+
<Update label="2024-10-12" description="v0.1.1">
99
<Frame>
1010
<img
1111
className="block"
@@ -22,14 +22,14 @@ The `Update` component is used to keep track of changes and updates.
2222
- Sticky section for each changelog
2323
</Update>
2424

25-
<Update label="2024-10-11" description="v0.1.0" tags={["Filter 2"]}>
25+
<Update label="2024-10-11" description="v0.1.0">
2626
### How to use
2727
```md
28-
<Update label="2024-10-12" description="v0.1.1" tags={["Filter 1"]}>
28+
<Update label="2024-10-12" description="v0.1.1">
2929
This is how you use a changelog with a label
3030
and a description.
3131
</Update>
32-
<Update label="2024-10-11" description="v0.1.0" tags={["Filter 2"]}>
32+
<Update label="2024-10-11" description="v0.1.0">
3333
This is how you use a changelog with a label
3434
and a description.
3535
</Update>
@@ -57,4 +57,13 @@ The `Update` component is used to keep track of changes and updates.
5757
</ResponseField>
5858

5959

60+
<RequestExample>
6061

62+
```jsx Update Example
63+
<Update label="2024-10-12" description="v0.1.1">
64+
This is how you use a changelog with a label
65+
and a description.
66+
</Update>
67+
```
68+
69+
</RequestExample>

0 commit comments

Comments
 (0)