mirror of
https://github.com/sr229/kuru-kuru.git
synced 2024-09-20 04:10:33 +00:00
2cab1d9865
Signed-off-by: Ayane <ayane@vignetteapp.org>
12 lines
373 B
TypeScript
12 lines
373 B
TypeScript
import { JSX } from "preact";
|
|
import { IS_BROWSER } from "$fresh/runtime.ts";
|
|
|
|
export function Button(props: JSX.HTMLAttributes<HTMLButtonElement>) {
|
|
return (
|
|
<button
|
|
{...props}
|
|
disabled={!IS_BROWSER || props.disabled}
|
|
class="text-gray-300 px-2 py-1 border-[#3b0764] border-2 rounded bg-[#6b21a8] hover:bg-[#3b0764] transition-colors"
|
|
/>
|
|
);
|
|
}
|