mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-02-01 04:37:57 +01:00
chore(playground): compodium setup
This commit is contained in:
11
playground/compodium/examples/UBadge/UBadgeExample.vue
Normal file
11
playground/compodium/examples/UBadge/UBadgeExample.vue
Normal file
@@ -0,0 +1,11 @@
|
||||
<script setup lang="ts">
|
||||
extendCompodiumMeta({
|
||||
defaultProps: {
|
||||
label: 'Badge'
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<UBadge />
|
||||
</template>
|
||||
13
playground/compodium/examples/UBadge/UBadgeExampleAvatar.vue
Normal file
13
playground/compodium/examples/UBadge/UBadgeExampleAvatar.vue
Normal file
@@ -0,0 +1,13 @@
|
||||
<script setup lang="ts">
|
||||
extendCompodiumMeta({
|
||||
combo: ['size', 'variant'],
|
||||
defaultProps: {
|
||||
label: 'Badge',
|
||||
avatar: { src: 'https://github.com/benjamincanac.png' }
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<UBadge />
|
||||
</template>
|
||||
13
playground/compodium/examples/UBadge/UBadgeExampleIcon.vue
Normal file
13
playground/compodium/examples/UBadge/UBadgeExampleIcon.vue
Normal file
@@ -0,0 +1,13 @@
|
||||
<script setup lang="ts">
|
||||
extendCompodiumMeta({
|
||||
combo: ['size', 'variant'],
|
||||
defaultProps: {
|
||||
label: 'Badge',
|
||||
icon: 'i-lucide-rocket'
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<UBadge />
|
||||
</template>
|
||||
13
playground/compodium/examples/UBadge/UBadgeExampleSizes.vue
Normal file
13
playground/compodium/examples/UBadge/UBadgeExampleSizes.vue
Normal file
@@ -0,0 +1,13 @@
|
||||
<script setup lang="ts">
|
||||
extendCompodiumMeta({
|
||||
combo: ['size', 'variant'],
|
||||
defaultProps: {
|
||||
label: 'Badge',
|
||||
disabled: true
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<UBadge />
|
||||
</template>
|
||||
@@ -0,0 +1,12 @@
|
||||
<script setup lang="ts">
|
||||
extendCompodiumMeta({
|
||||
combo: ['variant', 'color'],
|
||||
defaultProps: {
|
||||
label: 'Badge'
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<UBadge />
|
||||
</template>
|
||||
Reference in New Issue
Block a user