mirror of
https://github.com/averel10/crypto_clash.git
synced 2026-03-12 19:08:11 +01:00
use custom button component to rid all the css
This commit is contained in:
9
crypto_clash_frontend/app/clash/Input.tsx
Normal file
9
crypto_clash_frontend/app/clash/Input.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import { InputHTMLAttributes } from "react";
|
||||
|
||||
interface InputProps extends InputHTMLAttributes<HTMLInputElement> {}
|
||||
|
||||
export function Input({ className = "", ...props }: Readonly<InputProps>) {
|
||||
const baseClasses = "rounded-md border-0 px-3 py-1.5 shadow-sm ring-1 ring-inset ring-gray-300 focus:ring-2 focus:ring-inset focus:ring-indigo-600 dark:bg-white/5 dark:ring-white/10 dark:focus:ring-indigo-500";
|
||||
|
||||
return <input className={`${baseClasses} ${className}`} {...props} />;
|
||||
}
|
||||
Reference in New Issue
Block a user