Files
sweet/www/components/Button.tsx
T
Luca Casonato 660e0f5fef feat: twind plugin (#513)
This adds a first-party twind plugin to use twind for styling.
2022-08-09 21:41:11 +02:00

15 lines
418 B
TypeScript

/** @jsx h */
import { h } from "preact";
export function RoundedButton(props: h.JSX.HTMLAttributes<HTMLButtonElement>) {
return (
<button
style={{
touchAction: "manipulation",
}}
{...props}
class="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)}"
/>
);
}