Files
sweet/www/components/Button.tsx
T

17 lines
459 B
TypeScript

/** @jsx h */
import { h } from "preact";
import { tw } from "@twind";
export function RoundedButton(props: h.JSX.HTMLAttributes<HTMLButtonElement>) {
return (
<button
style={{
touchAction: "manipulation",
}}
{...props}
class={tw
`p-3 border border-transparent rounded-full text-white bg-green(500 hover:600) focus:(outline-none ring(2 offset-2 green-500)) disabled:(bg-green-200 cursor-default)`}
/>
);
}