Traken UI

Navbar Component

The `Navbar` component provides an animated navigation interface with smooth transitions and interactive effects.


Install Dependencies

npm install motion react-icons

Add util file

Create a file named utils.ts in the same directory as the component and add the following code:

lib/utils.ts

import { ClassValue, clsx } from "clsx";
import { twMerge } from "tailwind-merge";
 
export function cn(...inputs: ClassValue[]) {
  return twMerge(clsx(inputs));
}

use this component in your app

<AnimatedTextBackground
image=["your-image-url-1", "your-image-url-2"]
words=["word1", "word2", "word3"]
/>

On this page