@versini/ui-types 8.2.0 → 8.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.d.ts +8 -0
  2. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -183,6 +183,14 @@ declare namespace ButtonIconTypes {
183
183
  * @default false
184
184
  */
185
185
  animated?: boolean;
186
+ /**
187
+ * Show a badge on the button icon.
188
+ * - If `true`, a red dot badge will be displayed.
189
+ * - If a number, the number will be displayed in the badge.
190
+ * - Numbers greater than 99 will be displayed as "99+".
191
+ * @default undefined
192
+ */
193
+ badge?: boolean | number;
186
194
  } & CommonButtonProps &
187
195
  React.ButtonHTMLAttributes<HTMLButtonElement>;
188
196
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@versini/ui-types",
3
- "version": "8.2.0",
3
+ "version": "8.3.0",
4
4
  "license": "MIT",
5
5
  "author": "Arno Versini",
6
6
  "publishConfig": {
@@ -32,5 +32,5 @@
32
32
  "test:watch": "vitest",
33
33
  "test": "vitest run"
34
34
  },
35
- "gitHead": "5cc3c9aaf61ca3843f16a3d6b322a92f7fb210ca"
35
+ "gitHead": "fae53f4bd56440f7a72ed63b1a2a02b0c3b5a7e6"
36
36
  }