fix(Chip): extend now works with compound variants

This commit is contained in:
Benjamin Canac
2024-03-18 11:31:35 +01:00
parent 53755da835
commit 6dfd696092

View File

@@ -35,9 +35,7 @@ const show = defineModel<boolean>('show', { default: true })
const props = withDefaults(defineProps<ChipProps>(), { as: 'div' })
defineSlots<ChipSlots>()
// 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,