feat(VerticalNavigation): handle labelClass and merge iconClass

This commit is contained in:
Benjamin Canac
2023-12-12 19:11:12 +01:00
parent 1c9835d7f1
commit a79f7c0a34
3 changed files with 10 additions and 5 deletions

View File

@@ -12,8 +12,9 @@ links:
Pass an array to the `links` prop of the VerticalNavigation component. Each link can have the following properties:
- `label` - The label of the link.
- `labelClass` - The class of the link label. :u-badge{label="New" class="!rounded-full" variant="subtle"}
- `icon` - The icon of the link.
- `iconClass` - The class of the icon link.
- `iconClass` - The class of the link icon.
- `avatar` - The avatar of the link. You can pass all the props of the [Avatar](/elements/avatar) component.
- `badge` - A badge to display next to the label.
- `click` - The click handler of the link.