item
Clickable navigation items with icons and chevron
Clickable navigation items with icons and chevron
Загрузка превью…
src/item/c-item-4.vue
<script setup lang="ts">
import { Item, ItemActions, ItemContent, ItemDescription, ItemGroup, ItemMedia, ItemSeparator, ItemTitle } from "@/components/ui/item"
</script>
<template>
<div class="mx-auto flex w-full max-w-md flex-col">
<ItemGroup class="gap-0">
<Item as-child size="xs">
<a href="#">
<ItemMedia variant="icon">
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2" />
<circle cx="12" cy="7" r="4" />
</svg>
</ItemMedia>
<ItemContent>
<ItemTitle>Profile</ItemTitle>
<ItemDescription>Manage your account details</ItemDescription>
</ItemContent>
<ItemActions>
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="text-muted-foreground size-4"
>
<path d="m9 18 6-6-6-6" />
</svg>
</ItemActions>
</a>
</Item>
<ItemSeparator />
<Item as-child size="xs">
<a href="#">
<ItemMedia variant="icon">
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z" />
</svg>
</ItemMedia>
<ItemContent>
<ItemTitle>Security</ItemTitle>
<ItemDescription>Password and two-factor auth</ItemDescription>
</ItemContent>
<ItemActions>
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="text-muted-foreground size-4"
>
<path d="m9 18 6-6-6-6" />
</svg>
</ItemActions>
</a>
</Item>
<ItemSeparator />
<Item as-child size="xs">
<a href="#">
<ItemMedia variant="icon">
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<rect width="20" height="14" x="2" y="5" rx="2" />
<line x1="2" x2="22" y1="10" y2="10" />
</svg>
</ItemMedia>
<ItemContent>
<ItemTitle>Billing</ItemTitle>
<ItemDescription>Plans, invoices, and payment</ItemDescription>
</ItemContent>
<ItemActions>
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="text-muted-foreground size-4"
>
<path d="m9 18 6-6-6-6" />
</svg>
</ItemActions>
</a>
</Item>
</ItemGroup>
</div>
</template>
Установка
npx shadcn-vue@latest add https://revueui.rootapi.dev/r/c-item-4.jsonЗависимости реестра
Источник: порт из ReUI (Keenthemes, MIT)