zfb
GitHub repository

Type to search...

to open search from anywhere

Recipes

Created Jun 24, 2026Takeshi Takatsudo

Self-contained patterns for using zfb. Curated section — one topic per page, copy-pasteable.

A maintainer-curated set of small, focused patterns for composing zfb's primitives — addVirtualModule, postBuild plugins, ctx.routes, non-HTML pages, MDX components — into concrete solutions you can adapt.

Each recipe is:

  • A single article on a single topic

  • Written as an explanation, not a code dump — the why matters as much as the how

  • Anchored to a specific zfb version range, so you know what state of the engine it assumes

Recipes

  • Enlargeable Images — reproduce the old imageEnlarge built-in in userland using the img component override. Covers the server-side (no JS) and islands variants, plus the no-enlarge opt-out.

  • Admonitions — register :::note, :::tip, :::info, :::warning, :::danger, :::caution, and :::details using the directives feature with minimal component stubs and CSS hooks.

Revision History

Takeshi TakatsudoCreated: 2026-06-25T05:17:25+09:00Updated: 2026-06-25T05:17:25+09:00

AI Assistant

Ask a question about the documentation.