Files
sweet/www/components/gallery/LinkButton.tsx
T
2022-11-07 22:24:32 +09:00

15 lines
294 B
TypeScript

import { JSX } from "preact";
export default function LinkButton(
props: JSX.HTMLAttributes<HTMLAnchorElement>,
) {
return (
<a
{...props}
class={`inline-block cursor-pointer px-3 py-2 bg-white rounded hover:bg-gray-100 ${
props.class ?? ""
}`}
/>
);
}