Atrium // Components
Breadcrumbs
Breadcrumbs are used to show the current location within a hierarchy of navigational items.
<script setup lang="ts">
import "@atrium-ui/elements/track";
import { twMerge } from "tailwind-merge";
</script>
<template>
<div :class="twMerge('relative block min-h-[1.5rem]')">
<a-track class="overflow-hidden">
<div class="relative whitespace-nowrap pr-4">
<fra-link href="/">
<fra-icon name="home"></fra-icon>
</fra-link>
<span class="mx-1">/</span>
<span class="[&_*:not(:last-child)]:after:mx-1 [&_*:not(:last-child)]:after:content-['/'] [&_*:not(:last-child)]:hover:text-[#666]">
<slot />
</span>
</div>
</a-track>
<div class="absolute top-0 right-0 h-full w-4 bg-gradient-to-r from-transparent to-white"></div>
</div>
</template>