From 6dfd696092e6a9633be62ec7d1a7fb2a24dc8657 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Mon, 18 Mar 2024 11:31:35 +0100 Subject: [PATCH] fix(Chip): extend now works with compound variants --- src/runtime/components/Chip.vue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/runtime/components/Chip.vue b/src/runtime/components/Chip.vue index 5a4f94c2..15ace825 100644 --- a/src/runtime/components/Chip.vue +++ b/src/runtime/components/Chip.vue @@ -35,9 +35,7 @@ const show = defineModel('show', { default: true }) const props = withDefaults(defineProps(), { as: 'div' }) defineSlots() -// FIXME: Cannot extend multiple times: https://github.com/nextui-org/tailwind-variants/issues/168 -// const ui = computed(() => tv({ extend: chip, slots: props.ui })({ -const ui = computed(() => chip({ +const ui = computed(() => tv({ extend: chip, slots: props.ui })({ color: props.color, size: props.size, position: props.position,