diff --git a/src/runtime/components/Badge.vue b/src/runtime/components/Badge.vue
index e99bad04..416bf4fb 100644
--- a/src/runtime/components/Badge.vue
+++ b/src/runtime/components/Badge.vue
@@ -23,8 +23,6 @@ export interface BadgeSlots {
-
+
{{ label }}
diff --git a/test/components/Badge.spec.ts b/test/components/Badge.spec.ts
new file mode 100644
index 00000000..5de537ca
--- /dev/null
+++ b/test/components/Badge.spec.ts
@@ -0,0 +1,22 @@
+import { describe, it, expect } from 'vitest'
+import Badge, { type BadgeProps } from '../../src/runtime/components/Badge.vue'
+import ComponentRender from '../component-render'
+
+describe('Badge', () => {
+ it.each([
+ ['with label', { props: { label: 'Badge' } }],
+ ['with class', { props: { class: 'rounded-full font-bold' } }],
+ ['with size', { props: { label: 'Badge', size: 'lg' as const } }],
+ ['with color green', { props: { label: 'Badge', color: 'green' as const } }],
+ ['with color white', { props: { label: 'Badge', color: 'white' as const } }],
+ ['with color gray', { props: { label: 'Badge', color: 'gray' as const } }],
+ ['with color black', { props: { label: 'Badge', color: 'black' as const } }],
+ ['with variant outline', { props: { label: 'Badge', variant: 'outline' as const } }],
+ ['with variant soft', { props: { label: 'Badge', variant: 'soft' as const } }],
+ ['with variant link', { props: { label: 'Badge', variant: 'subtle' as const } }],
+ ['with default slot', { slots: { default: () => 'Default slot' } }]
+ ])('renders %s correctly', async (nameOrHtml: string, options: { props?: BadgeProps, slots?: any }) => {
+ const html = await ComponentRender(nameOrHtml, options, Badge)
+ expect(html).toMatchSnapshot()
+ })
+})
diff --git a/test/components/__snapshots__/Badge.spec.ts.snap b/test/components/__snapshots__/Badge.spec.ts.snap
new file mode 100644
index 00000000..9540c5a1
--- /dev/null
+++ b/test/components/__snapshots__/Badge.spec.ts.snap
@@ -0,0 +1,23 @@
+// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
+
+exports[`Badge > renders with class correctly 1`] = `""`;
+
+exports[`Badge > renders with color black correctly 1`] = `"Badge"`;
+
+exports[`Badge > renders with color gray correctly 1`] = `"Badge"`;
+
+exports[`Badge > renders with color green correctly 1`] = `"Badge"`;
+
+exports[`Badge > renders with color white correctly 1`] = `"Badge"`;
+
+exports[`Badge > renders with default slot correctly 1`] = `"Default slot"`;
+
+exports[`Badge > renders with label correctly 1`] = `"Badge"`;
+
+exports[`Badge > renders with size correctly 1`] = `"Badge"`;
+
+exports[`Badge > renders with variant link correctly 1`] = `"Badge"`;
+
+exports[`Badge > renders with variant outline correctly 1`] = `"Badge"`;
+
+exports[`Badge > renders with variant soft correctly 1`] = `"Badge"`;