Add components for SelectField and TextLinkButton

This commit is contained in:
araemer 2025-11-13 20:37:26 +01:00
parent e539f9201b
commit c8b8435b69
3 changed files with 101 additions and 51 deletions

View file

@ -0,0 +1,20 @@
type TextLinkButtonProps = {
text: string;
onClick: () => void;
className?: string;
};
/**
* TextLinkButton - A button styled as a hyperlink
*/
export default function TextLinkButton({text, onClick, className = ''}: TextLinkButtonProps) {
return (
<button
type="button"
onClick={onClick}
className={`text-blue-600 hover:text-blue-800 hover:underline transition-colors bg-transparent border-none p-0 cursor-pointer ${className}`}
>
{text}
</button>
);
}