OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.
import { ChevronRightIcon } from 'lucide-react';
import Link from 'next/link';
import { Button } from './ui/button';
import { cn } from '@/lib/utils';
export function GetStartedButton({
text,
href = 'https://dashboard.openpanel.dev/onboarding',
className,
...linkProps
}: {
text?: React.ReactNode;
className?: string;
href?: string;
} & Omit<React.ComponentProps<typeof Link>, 'href' | 'className'>) {
return (
<Button asChild className={cn('group', className)} size="lg">
<Link href={href} {...linkProps}>
{text ?? 'Start free trial'}
<ChevronRightIcon className="size-4 transition-transform group-hover:translate-x-1 group-hover:scale-125" />
</Link>
</Button>
);
}