Add components for SelectField and TextLinkButton
This commit is contained in:
parent
e539f9201b
commit
c8b8435b69
3 changed files with 101 additions and 51 deletions
20
frontend/src/components/basics/TextLinkButton.tsx
Normal file
20
frontend/src/components/basics/TextLinkButton.tsx
Normal 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>
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue