Skip to content

OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.

522 B
Raw Blame
import { Button as EmailButton } from '@react-email/components';
import type React from 'react';

export function Button({
  href,
  children,
  style,
}: {
  href: string;
  children: React.ReactNode;
  style?: React.CSSProperties;
}) {
  return (
    <EmailButton
      href={href}
      style={{
        backgroundColor: '#000',
        borderRadius: '6px',
        color: '#fff',
        padding: '12px 20px',
        textDecoration: 'none',
        ...style,
      }}
    >
      {children}
    </EmailButton>
  );
}