Spaces:
Runtime error
Runtime error
File size: 744 Bytes
cd6f98e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
import clsx from "clsx";
import type { ReactNode } from "react";
import React from "react";
import Button from "../ui/button";
type TextButtonProps = {
children: ReactNode | string;
icon?: ReactNode;
onClick?: () => void;
className?: string;
};
export default function TextButton({ children, onClick, icon, className }: TextButtonProps) {
return (
<Button
onClick={onClick}
className={clsx(
"group rounded-full bg-transparent text-neutral-400 transition duration-200 ease-in-out hover:bg-white/10 hover:text-white focus-visible:bg-neutral-900 focus-visible:outline-none focus-visible:ring-4 focus-visible:ring-neutral-500",
className
)}
>
{icon}
{children}
</Button>
);
}
|