ui
ui copied to clipboard
[UCommandPalette] Support for avatars with chips in `UCommandPalette` items (and `UButton`, …)
Description
I’ve been trying to display an avatar with a chip inside a UCommandPalette item (and UButton, …), but it looks like this use case isn't currently supported.
Additional context
No response
@maximepvrt This doesn't suit you?
@HugoRCD Thanks! That’s actually what I did. I redefined the slot to make it work.
That said, it would be great to support this natively, like in v2. There could be two possible approaches:
- Either add a chip prop directly on the UAvatar component, which would automatically wrap the content in a UChip,
- Or, for all components that use UAvatar, detect if the avatar prop includes a chip attribute, and if so, wrap the avatar in a chip accordingly.