mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 12:14:41 +01:00
fix(Chip): size injection (#105)
This commit is contained in:
@@ -7,7 +7,7 @@ export function useAvatarGroup(props: { size: AvatarGroupProps['size'] }) {
|
||||
const injectedSize = inject(avatarGroupInjectionKey, undefined)
|
||||
|
||||
const size = computed(() => props.size ?? injectedSize?.value.size)
|
||||
provide('avatar-size', size)
|
||||
provide(avatarGroupInjectionKey, computed(() => ({ size: size.value })))
|
||||
|
||||
return {
|
||||
size
|
||||
|
||||
Reference in New Issue
Block a user