feat(Dropdown): handle labelClass and merge iconClass

Resolves #716
This commit is contained in:
Benjamin Canac
2023-12-12 19:07:46 +01:00
parent 6d8d82a265
commit 1c9835d7f1
3 changed files with 9 additions and 4 deletions

View File

@@ -14,8 +14,9 @@ links:
Pass an array of arrays to the `items` prop of the Dropdown component. Each array represents a group of items. Each item can have the following properties:
- `label` - The label of the item.
- `labelClass` - The class of the item label. :u-badge{label="New" class="!rounded-full" variant="subtle"}
- `icon` - The icon of the item.
- `iconClass` - The class of the icon of the item.
- `iconClass` - The class of the item icon.
- `avatar` - The avatar of the item. You can pass all the props of the [Avatar](/elements/avatar) component.
- `shortcuts` - The shortcuts of the item.
- `slot` - The slot of the item.