Krizaka
Documentation

Gallery page

A demo or a gallery: the filters as links, then the pieces in staggered columns, each framed with how it was made.

WebBetaTemplates

Web only — React, from @krizaka/ui/gallery-page. Beta: its API may still change in a minor version.

When to use

  • What a product made (images, voices) or recordings of it.
  • A portfolio of real work.

When not to use

Installation

Install

npm install @krizaka/ui @krizaka/tailwind @krizaka/tokens tailwindcss

Styles

@import "tailwindcss";
@import "@krizaka/tailwind";
@import "@krizaka/ui/tailwind.css";

Import

import { GalleryPage } from "@krizaka/ui/gallery-page";

Examples

Made on this Mac

Images Orazaka generated locally, with their prompt and seed.

Made on this Mac

Generated by Orazaka itself

Every image here was made locally, with its prompt and its seed — nothing came from a cloud.

Props

A demo or a gallery: hero, filters, media in staggered columns, closing call.

PropTypeDefaultDescription
galleryLabelrequiredstring—The gallery's accessible name.
itemsrequiredreadonly GalleryItem[]—The pieces, featured first.
titlerequiredReactNode—The page's h1.
actionsReactNode—The hero's actions.
back{ href: string; label: string; }—The way back.
brandstring—The brand the page wears (.brand-<id>).
closing{ title: ReactNode; body?: ReactNode; actions: ReactNode; }—The closing call.
eyebrowReactNode—A mono line above the title.
filtersReactNode—Above the pieces: the filters (ChipLink, a Chip group) — the address says which one is on.
leadReactNode—One or two sentences under it.
linkAsLinkComponent—The app's link component (Next's Link).

Accessibility

  • Each piece is a figure with its caption; images carry their alt.
  • The gallery is a list named by galleryLabel.

Best practices

  • Filters as links: the address keeps the choice.
  • A caption says how each piece was made (a prompt, a seed, a time).
  • Words and content arrive as props; the motion is the platform's ([data-reveal], still under reduced motion).

Generated from the code of @krizaka/ui 2.10.0: its meta.ts, its examples and its types.Edit this documentation on GitHub

On this page