glorpies

preact

A <Glorpie> component for Preact, with no compat layer.

❯npm i glorpies

use it

UserBadge.tsx
import { Glorpie } from 'glorpies/preact'; export function UserBadge({ user }) {  return <Glorpie name={user.email} size={40} label={user.name} />;}
ada@lovelace.dev
agent-47
grace@hopper.dev

Takes every option, plus class and onError. It's written against Preact directly, so it doesn't need preact/compat. With preact-render-to-string it renders a placeholder in the face's background colour.

If your app already aliases react to preact/compat, glorpies/react works too, including Avatar.