mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-24 17:00:36 +01:00
fix(Chip): extend now works with compound variants
This commit is contained in:
@@ -35,9 +35,7 @@ const show = defineModel<boolean>('show', { default: true })
|
|||||||
const props = withDefaults(defineProps<ChipProps>(), { as: 'div' })
|
const props = withDefaults(defineProps<ChipProps>(), { as: 'div' })
|
||||||
defineSlots<ChipSlots>()
|
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(() => tv({ extend: chip, slots: props.ui })({
|
|
||||||
const ui = computed(() => chip({
|
|
||||||
color: props.color,
|
color: props.color,
|
||||||
size: props.size,
|
size: props.size,
|
||||||
position: props.position,
|
position: props.position,
|
||||||
|
|||||||
Reference in New Issue
Block a user