create button, textlink, add icons and font

This commit is contained in:
yzned
2025-07-18 16:17:10 +03:00
committed by yzned
parent 5bb273d4cc
commit ca6dfe6ccb
39 changed files with 2265 additions and 33 deletions

View File

@@ -0,0 +1,28 @@
import { cn } from "@/lib/utils";
import type { FC, ReactNode } from "react";
interface TextLinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
children?: ReactNode;
className?: string;
disabled?: boolean;
}
export const TextLink: FC<TextLinkProps> = ({
children,
className,
disabled = false,
...props
}) => {
return (
<a
data-disabled={disabled}
className={cn(
"text-feedback-info-900 data-[disabled=true]:opacity-50 font-[600] data-[disabled=false]:cursor-pointer data-[disabled=false]:hover:border-b-[2px] w-fit transition-all duration-75",
className,
)}
{...props}
>
{children}
</a>
);
};