feat: basic setup for web with tailwind and routing
This commit is contained in:
19
web/src/components/ui/button.tsx
Normal file
19
web/src/components/ui/button.tsx
Normal file
@ -0,0 +1,19 @@
|
||||
import type { ButtonHTMLAttributes, FC, ReactNode } from "react";
|
||||
|
||||
interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
||||
children: ReactNode;
|
||||
className?: string;
|
||||
}
|
||||
|
||||
export const Button: FC<ButtonProps> = ({ children, className, ...props }) => {
|
||||
return (
|
||||
<button
|
||||
className={`bg-blue-600 text-white py-2 px-4 rounded-md hover:bg-blue-700 transition-colors ${
|
||||
className || ""
|
||||
}`}
|
||||
{...props}
|
||||
>
|
||||
{children}
|
||||
</button>
|
||||
);
|
||||
};
|
Reference in New Issue
Block a user