Celestograph Image
Image with a generative art fallback: while loading or when it fails, a Celestograph plate seeded from the alt text stands in, and the photo fades in over it. With no source, the plate is the picture.
pnpm dlx shadcn add @01orbital/celestograph-imageThe source comes with full access.
One payment of $149 opens the source right here and lets the CLI install every paid component, with lifetime updates.
Usage
import { CelestographImage } from "@/components/celestograph/celestograph-image"
export default function CelestographImageDemo() {
return (
<div className="grid w-full max-w-3xl grid-cols-2 place-items-stretch gap-5 p-6">
<CelestographImage alt="Dornach, 1894" shape="wide" />
<CelestographImage
alt="A broken source"
shape="wide"
src="/does-not-exist.jpg"
/>
</div>
)
}Examples
New
celestograph-image-wide-frame
New
celestograph-image-square-frame
New
celestograph-image-circle-frame
New
celestograph-image-portrait-frame
New
celestograph-image-banner-frame
New
celestograph-image-fresh-emulsion
New
celestograph-image-developed-emulsion
New
celestograph-image-ruined-emulsion
New
celestograph-image-fresh-amber
New
celestograph-image-ruined-amber
New
celestograph-image-folded-strata
New
celestograph-image-clouded-plate
New
celestograph-image-marbled-plate
New
celestograph-image-soft-ungrained-plate
New
celestograph-image-cyan-and-plum-anchors
New
celestograph-image-short-image-title
New
celestograph-image-different-seed-same-chemistry
New
celestograph-image-album-cover
New
celestograph-image-edition-triptych
New
celestograph-image-card-with-image
API reference
An image whose loading state is a plate painted from its alt text, stable, with no extra request and no layout shift. With no src, or after the image fails to load, the plate is the picture.
While no image shows, the plate is labeled with alt; an empty alt hides the whole frame from assistive tech. The image fades in over 500ms once loaded, or at once with reduced motion. className lands on the frame and imgClassName on the <img>.
Prop
Type
It also accepts the HTML attributes of the element it renders.
Dependencies
npm: cn. The CLI installs them for you.
Registry pieces it installs with it: