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.

WebBêtaModèles

Web uniquement — React, depuis @krizaka/ui/gallery-page. Bêta : son API peut encore changer à une version mineure.

Quand l’utiliser

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

Quand ne pas l’utiliser

Installation

Installer

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

Styles

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

Importer

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

Exemples

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.

PropTypeDéfautDescription
galleryLabelrequisstring—The gallery's accessible name.
itemsrequisreadonly GalleryItem[]—The pieces, featured first.
titlerequisReactNode—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).

Accessibilité

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

Bonnes pratiques

  • 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).

Générée depuis le code de @krizaka/ui 2.10.0 : son meta.ts, ses exemples et ses types.Modifier cette documentation sur GitHub

Sur cette page