homeman-deno/components/Avatar.tsx

13 lines
231 B
TypeScript
Raw Normal View History

2024-01-09 23:06:44 -06:00
import { JSX } from 'preact'
export function Avatar(
{ className, ...props }: JSX.HTMLAttributes<HTMLImageElement>,
) {
return (
<img
{...props}
class={`rounded-full object-cover h-60 w-60 ${className || ''}`}
/>
)
}