Skip to main content

Installation

Install the Astro package with your preferred package manager.

Icons

Render an icon with Icon, or use icon() in the frontmatter script when you need its URL or SVG markup.

Avatars

Render a deterministic profile image with Avatar, or use avatar() to pass the selected image URL to another service or retrieve its canonical SVG.

QR codes

Render scannable text or URLs with QrCode, or use qrCode() when frontmatter code needs the image URL or canonical SVG.

Placeholders

Render square or custom-dimension images with Placeholder, or use placeholder() when frontmatter code needs the selected image URL or SVG markup.
Helpers return the selected representation URL immediately. Calling .svg() retrieves canonical SVG markup for the same asset.