Navigation Button
A navigation button is an interactive UI element that allows users to move between different sections or pages of a website or application. It enhances user experience by providing quick and intuitive access to essential features or destinations.
Preview
Follow below steps 👇🏻
Component
Create a file navigation-button.tsx in your components folder and paste this code
1import React from 'react';2import { ArrowUpRight } from 'lucide-react';34interface ButtonProps {5children: React.ReactNode;6href: string;7target?: '_self' | '_blank' | '_parent' | '_top';8className?: string;9icon?: React.ReactNode;10}1112const NavigationButton: React.FC<ButtonProps> = ({13children,14href,15target = '_self',16className,17icon18}) => {19return (20<a21href={href}22target={target}23className={`w-min inline-flex items-center gap-2 px-6 py-3 font-semibold text-white bg-gray-900 border border-gray-700 shadow-lg transition-all duration-200 ease-in-out hover:bg-gray-800 active:scale-95 focus:outline-none ${className}`}24>25{children}26{icon || <ArrowUpRight size={20} />}27</a>28);29};3031export default NavigationButton;
Usage
1<NavigationButton2href="your_link_here"3target="_blank"4className="text-lg md:text-xl font-medium rounded-xl !px-5 sm:!px-10 py-4"5>6Continue7</NavigationButton>
⭐️ Got a question or feedback?
Feel free to reach out!