chore: use InjectionKey to type and define injected properties (#90)

This commit is contained in:
Romain Hamel
2024-05-06 10:45:36 +02:00
committed by GitHub
parent 63822c3cf6
commit a9a1746486
7 changed files with 70 additions and 58 deletions

View File

@@ -32,7 +32,7 @@ export interface ChipSlots {
</script>
<script setup lang="ts">
import { computed, provide } from 'vue'
import { computed } from 'vue'
import { Primitive } from 'radix-vue'
import { useAvatarGroup } from '#imports'
@@ -50,8 +50,6 @@ const ui = computed(() => tv({ extend: chip, slots: props.ui })({
inset: props.inset,
standalone: props.standalone
}))
provide('avatar-size', size)
</script>
<template>