feat: Added badge component
This commit is contained in:
19
docs/components/badge/examples/BadgeIconsExample.vue
Normal file
19
docs/components/badge/examples/BadgeIconsExample.vue
Normal file
@@ -0,0 +1,19 @@
|
||||
<template>
|
||||
<div class="vp-raw flex items-end">
|
||||
<Badge>
|
||||
<template #icon>
|
||||
<svg aria-hidden="true" class="mr-1 w-3 h-3" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm1-12a1 1 0 10-2 0v4a1 1 0 00.293.707l2.828 2.829a1 1 0 101.415-1.415L11 9.586V6z" clip-rule="evenodd"></path></svg>
|
||||
</template>
|
||||
Default
|
||||
</Badge>
|
||||
<Badge type="dark" size="sm">
|
||||
<template #icon>
|
||||
<svg aria-hidden="true" class="mr-1 w-3 h-3" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm1-12a1 1 0 10-2 0v4a1 1 0 00.293.707l2.828 2.829a1 1 0 101.415-1.415L11 9.586V6z" clip-rule="evenodd"></path></svg>
|
||||
</template>
|
||||
Dark
|
||||
</Badge>
|
||||
</div>
|
||||
</template>
|
||||
<script setup>
|
||||
import Badge from '@/components/Badge/Badge.vue'
|
||||
</script>
|
||||
Reference in New Issue
Block a user