import { Gallery } from "@hoangyell/gallery";
# Our honeymoon in Japan
<Gallery
items={[
"/japan/temple.webp",
{ src: "/japan/sushi.webp", alt: "Toyosu sushi" },
"/japan/fuji.webp",
]}
rows={2}
/>
Vibe coding
Let an AI agent install it for you
Paste any prompt below into Claude, ChatGPT, Cursor, Copilot, or
Windsurf. The agent will read the repo, install the package, and
wire up your imports.
1Copy a prompt below.
2Edit the bracketed parts to fit your project.
3Paste into your AI tool. Done.
Install and wire it up
Refer to https://github.com/HoangYell/hoangyell-gallery as the
complete reference for the @hoangyell/gallery package, then in
my current project:
1. Install it with pnpm (or detect my package manager).
2. Pick one MDX or .astro file that already has an image grid
or a stack of <img> tags.
3. Replace that grid with <Gallery items={[...]} rows={2} />,
preserving every existing src and alt.
4. Show me a small diff of what changed.
Migrate from Hugo or another gallery
Refer to https://github.com/HoangYell/hoangyell-gallery for the
@hoangyell/gallery API. Find every Hugo {{< gallery >}} shortcode
(or my existing gallery component) across src/content/**/*.{md,mdx}
and rewrite each one as <Gallery items={[...]} rows={N}> with
the same images. Keep alt text. Add the import at the top of
each file that needs it.
Theme to match my brand
Refer to https://github.com/HoangYell/hoangyell-gallery for the
CSS custom properties exposed by .hy-gallery. Add an override
block in src/styles/global.css that sets:
- --hy-gallery-accent to my brand color
- --hy-gallery-radius to 1.25rem
- --hy-gallery-gap to 6px
Scope it under .prose .hy-gallery so it only applies inside
blog content.
Works with any AI that reads URLs · Claude · ChatGPT · Cursor · GitHub Copilot · Windsurf
From the family
Sister projects from the same garage. All free, all open-source,
all built for engineers who ship.