Free & Open-Source Invoice Generator - No Sign-Up, No Ads, Instant PDF Export, 100% In-Browser, and Fully Customizable Templates.
TypeScript fintechinvoiceinvoice-generatorinvoice-pdfinvoice-templateinvoicesnextjsopen-sourcequotesreactreact-pdf-rendererself-hostedshadcn-uitailwindcsstypescript
import { ArrowRight } from "lucide-react";
import Link from "next/link";
import { Button } from "@/components/ui/button";
import { cn } from "@/lib/utils";
export function GoToAppButton({
className,
children,
href = "/",
}: {
className?: string;
children?: React.ReactNode;
href?: string;
}) {
return (
<Button
size="lg"
variant="outline"
className={cn(
"group relative overflow-hidden border-slate-200 px-8 shadow-sm transition-all duration-300 hover:border-slate-200/80 hover:shadow-lg",
className,
)}
asChild
data-testid="go-to-app-button"
>
<Link href={href}>
<ArrowRight className="mr-2 size-6 transition-transform group-hover:scale-110" />
{children}
</Link>
</Button>
);
}
export function BlackGoToAppButton({
className,
children,
href = "/",
}: {
className?: string;
children?: React.ReactNode;
href?: string;
}) {
return (
<GoToAppButton
className={cn(
"relative overflow-hidden bg-zinc-900 text-white transition-all duration-300 hover:scale-[1.02] hover:bg-zinc-800 hover:text-white active:scale-[0.98]",
className,
)}
href={href}
>
{children}
</GoToAppButton>
);
}