Spaces:
Running
Running
| <script lang="ts"> | |
| import { NavigationMenu as NavigationMenuPrimitive } from "bits-ui"; | |
| import { cn } from "$lib/utils.js"; | |
| let { | |
| ref = $bindable(null), | |
| class: className, | |
| ...restProps | |
| }: NavigationMenuPrimitive.IndicatorProps = $props(); | |
| </script> | |
| <NavigationMenuPrimitive.Indicator | |
| bind:ref | |
| data-slot="navigation-menu-indicator" | |
| class={cn( | |
| "data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden", | |
| className | |
| )} | |
| {...restProps} | |
| > | |
| <div class="bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md"></div> | |
| </NavigationMenuPrimitive.Indicator> | |