Skip to content

Free & Open-Source Invoice Generator - No Sign-Up, No Ads, Instant PDF Export, 100% In-Browser, and Fully Customizable Templates.

523 B
Raw Blame
import { Button } from "@/components/ui/button";
import { cn } from "@/lib/utils";

export const ButtonHelper = ({
  children,
  className,
  ...props
}: { children: React.ReactNode; className?: string } & React.ComponentProps<
  typeof Button
>) => {
  return (
    <Button
      type="button"
      variant="link"
      size="sm"
      className={cn(
        "h-5 max-w-full whitespace-normal text-pretty p-0 text-left underline",
        className,
      )}
      {...props}
    >
      {children}
    </Button>
  );
};