mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
@@ -41,9 +41,11 @@ export interface ChipSlots {
|
||||
|
||||
<script setup lang="ts">
|
||||
import { computed } from 'vue'
|
||||
import { Primitive } from 'radix-vue'
|
||||
import { Primitive, Slot } from 'radix-vue'
|
||||
import { useAvatarGroup } from '../composables/useAvatarGroup'
|
||||
|
||||
defineOptions({ inheritAttrs: false })
|
||||
|
||||
const props = withDefaults(defineProps<ChipProps>(), {
|
||||
inset: false,
|
||||
standalone: false
|
||||
@@ -65,7 +67,9 @@ const ui = computed(() => chip({
|
||||
|
||||
<template>
|
||||
<Primitive :as="as" :class="ui.root({ class: [props.class, props.ui?.root] })">
|
||||
<slot />
|
||||
<Slot v-bind="$attrs">
|
||||
<slot />
|
||||
</Slot>
|
||||
|
||||
<span v-if="show" :class="ui.base({ class: props.ui?.base })">
|
||||
<slot name="content">
|
||||
|
||||
Reference in New Issue
Block a user