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: docs/content/2.guide/6.badges.md
+14-7Lines changed: 14 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,20 +69,27 @@ Use this generator to get the Markdown code you desire:
69
69
70
70
:badge-generator-parameters
71
71
72
-
### `labelColor`
72
+
### `label`
73
73
74
-
Overrides the default label color. You can pass a standard hex code (with or without the `#` prefix). The label text color is automatically chosen (black or white) based on WCAG contrast ratio, so the badge remains readable.
74
+
Overrides the default label text. You can pass any string to customize the label displayed on the left half of the badge.
75
75
76
-
-**Default**: `#0a0a0a`
77
-
-**Usage**: `?labelColor=HEX_CODE`
76
+
-**Default**: Depends on the badge type (e.g., "version", "downloads/mo").
77
+
-**Usage**: `?label=YOUR_LABEL`
78
78
79
-
### `label`
79
+
### `value`
80
80
81
-
Overrides the default label text. You can pass any string to customize the label displayed on the badge.
81
+
Overrides the default value text of the badge. You can pass any string to customize the value displayed on the right half of the badge.
82
82
83
-
-**Default**: Depends on the badge type (e.g., "version", "downloads/mo").
83
+
-**Default**: Calculated values depending on the badge type (e.g., "v4.2.0", "5.4M").
84
84
-**Usage**: `?label=YOUR_LABEL`
85
85
86
+
### `labelColor`
87
+
88
+
Overrides the default label color. You can pass a standard hex code (with or without the `#` prefix). The label text color is automatically chosen (black or white) based on WCAG contrast ratio, so the badge remains readable.
89
+
90
+
-**Default**: `#0a0a0a`
91
+
-**Usage**: `?labelColor=HEX_CODE`
92
+
86
93
### `color`
87
94
88
95
Overrides the default strategy color. You can pass a standard hex code (with or without the `#` prefix). The text color is automatically chosen (black or white) based on WCAG contrast ratio, so the badge remains readable.
0 commit comments