fix(components): class should have priority over ui prop

This commit is contained in:
Benjamin Canac
2025-05-07 17:23:27 +02:00
parent a655da1394
commit e6e510b848
39 changed files with 40 additions and 40 deletions

View File

@@ -74,7 +74,7 @@ const ui = computed(() => tv({ extend: tv(theme), ...(appConfig.ui?.chip || {})
</script>
<template>
<Primitive :as="as" :class="ui.root({ class: [props.class, props.ui?.root] })">
<Primitive :as="as" :class="ui.root({ class: [props.ui?.root, props.class] })">
<Slot v-bind="$attrs">
<slot />
</Slot>