Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 11 additions & 9 deletions content/components/update.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ icon: "rectangle-history"

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

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

<Update label="2024-10-11" description="v0.1.0">
<Update label="2024-10-11" description="v0.1.0" tags={["Filter 2"]}>
### How to use
```md
<Update label="2024-10-12" description="v0.1.1">
<Update label="2024-10-12" description="v0.1.1" tags={["Filter 1"]}>
This is how you use a changelog with a label
and a description.
</Update>
<Update label="2024-10-11" description="v0.1.0">
<Update label="2024-10-11" description="v0.1.0" tags={["Filter 2"]}>
This is how you use a changelog with a label
and a description.
</Update>
Expand All @@ -46,14 +46,16 @@ The `Update` component is used to keep track of changes and updates.
## Props

<ResponseField name="label" type="string" required>
Label in the changelog, on the sticky left side.
The label give to the update, appears as sticky text to the left of the changelog.
</ResponseField>

<ResponseField name="description" type="string">
Description below the label in the Changelog preview.
<ResponseField name="tags" type="string[]">
Tags for the changelog, will be shown as filters in the right side panel.
</ResponseField>

<ResponseField name="tags" type="string[]">
Tags for the changelog, will be show as filters in the right side panel
<ResponseField name="description" type="string">
Description of the update, appears below the label and tag.
</ResponseField>