feat: add custom render function support (#30)
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import { h, tw } from "../deps.ts";
|
||||
|
||||
export function RoundedButton(props: h.JSX.HTMLAttributes<HTMLButtonElement>) {
|
||||
return (
|
||||
<button
|
||||
{...props}
|
||||
class={tw
|
||||
`p-3 border border-transparent rounded-full text-white bg-indigo(600 hover:700) focus:(outline-none ring(2 offset-2 indigo-500)) disabled:(bg-indigo-200 cursor-default)`}
|
||||
/>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user