Skip to content

Open-source status page, incident response and uptime monitoring

536 B
Raw Blame
import { Button } from "@openstatus/ui/components/ui/button";
import type React from "react";

import { CustomLink } from "./custom-link";

export function ButtonLink(
  props: React.ComponentProps<typeof Button> & { href: string },
) {
  return (
    <Button
      variant="outline"
      size="lg"
      className="data-[variant=default]:text-background! h-auto rounded-none px-3 py-2 text-base no-underline!"
      asChild
      {...props}
    >
      <CustomLink href={props.href}>{props.children}</CustomLink>
    </Button>
  );
}