Skip to content

Commit fe7210d

Browse files
authored
feat(theme/tag): support updated tag and turn "new" tag from blue to green (#3128)
1 parent a9cd4a1 commit fe7210d

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

website/docs/en/_nav.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"text": "UI",
1414
"link": "/ui/vars",
1515
"activeMatch": "/ui/",
16-
"tag": "new"
16+
"tag": "V2"
1717
},
1818
{
1919
"text": "API",

website/docs/en/ui/layout-components/tag.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ The component has built-in common tags that display with `<Badge />`. All common
7575
| `new` | <Tag tag="new" /> |
7676
| `experimental` | <Tag tag="experimental" /> |
7777
| `deprecated` | <Tag tag="deprecated" /> |
78+
| `updated` | <Tag tag="updated" /> |
7879

7980
:::tip Extending Common Tags
8081

@@ -152,7 +153,7 @@ import { Tag } from '@rspress/core/theme';
152153
interface TagProps {
153154
/**
154155
* Tag content. Supports:
155-
* - Common tags: 'tip', 'info', 'warning', 'danger', 'new', 'experimental', 'deprecated'
156+
* - Common tags: 'new', 'experimental', 'deprecated', 'updated'
156157
* - Multiple common tags: 'new, experimental'
157158
* - SVG string: '<svg>...</svg>'
158159
* - Image URL: 'https://...' or 'data:...'

website/docs/zh/_nav.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"text": "UI",
1414
"link": "/ui/vars",
1515
"activeMatch": "/ui/",
16-
"tag": "new"
16+
"tag": "V2"
1717
},
1818
{
1919
"text": "API",

website/docs/zh/ui/layout-components/tag.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ tag: new, experimental
7575
| `new` | <Tag tag="new" /> |
7676
| `experimental` | <Tag tag="experimental" /> |
7777
| `deprecated` | <Tag tag="deprecated" /> |
78+
| `updated` | <Tag tag="updated" /> |
7879

7980
:::tip 扩充常用标签
8081

@@ -152,7 +153,7 @@ import { Tag } from '@rspress/core/theme';
152153
interface TagProps {
153154
/**
154155
* 标签内容。支持:
155-
* - 常用标签:'tip'、'info'、'warning'、'danger'、'new'、'experimental'、'deprecated'
156+
* - 常用标签:'new'、'experimental'、'deprecated'、'updated'
156157
* - 多个常用标签:'new, experimental'
157158
* - SVG 字符串:'<svg>...</svg>'
158159
* - 图片 URL:'https://...' 或 'data:...'

0 commit comments

Comments
 (0)