mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
docs(VerticalNavigation): add truncate in icon slot example (#998)
This commit is contained in:
@@ -32,7 +32,10 @@ const links = [{
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<UVerticalNavigation :links="links">
|
||||
<UVerticalNavigation
|
||||
:links="links"
|
||||
:ui="{ wrapper: 'truncate' }"
|
||||
>
|
||||
<template #icon="{ link }">
|
||||
<UIcon v-if="link.type" :name="types[link.type].icon" :class="types[link.type].color" class="text-base" />
|
||||
<UIcon v-else :name="types.default.icon" :class="types.default.color" class="text-base" />
|
||||
|
||||
Reference in New Issue
Block a user