# Showcase wall (Notchset): prompt.md (v2.2.0)

- id: `showcase-wall` · version 2.2.0 · block · free
- category: Marketing
- build: one set of files for every shadcn style
- install: `npx shadcn@latest add https://notchset.dev/r/showcase-wall.json`
- npm dependencies: none
- registry dependencies: utils, https://notchset.dev/r/notchset-foundation.json
- docs: https://notchset.dev/blocks/showcase-wall
- The install command carries everything this item needs (files, CSS, tokens, npm and registry dependencies). Prefer it to copying source by hand.

The live pieces a homepage leads with, each big and touchable on a soft wash, with its name and what happens when you touch it underneath. Tiles mount as they come near the screen and hold their place..

## Build it
- Stack: React 18.3 or 19, TypeScript, Tailwind CSS v4 utility classes on the foundation's roles, a components.json (imports use its aliases).
- Packages: none beyond React.
- Files: `components/ui/notchset/blocks/showcase-wall.tsx`.
- Registry dependencies, installed with it automatically: shadcn `utils` (cn), `notchset-foundation`.
- Builds: one set of files, the same for every shadcn style.
- Exports to keep: `ShowcaseSurface`, `ShowcaseWall`, and every exported type.
- CSS: the install adds the notchset foundation (its roles, keyframes and motion switch, reading your shadcn tokens for colour) to your global stylesheet once. Nothing to import by hand.
- Re-running `add` (or `--overwrite`) re-applies those rules: put overrides in your own CSS, never in the installed rules.
- Colours: every part reads the foundation's roles (`--ns-canvas`, `--ns-ink`, `--ns-line`, `--ns-signal` …), which read your shadcn tokens (`--background`, `--foreground`, `--border`, `--destructive` …), plus the optional `--success` and `--warning`. Retheme on `:root` or any container; never add Tailwind colour classes inside the component.
- This item reads `--ns-canvas`, `--ns-ease`, `--ns-ink`, `--ns-ink-3`, `--ns-line`, `--ns-panel`, `--ns-radius-xl`, `--ns-shadow-float`, `--ns-signal`, `--ns-text-small`, `--ns-time-page`, `--ns-wash-clay`, `--ns-wash-dusk`, `--ns-wash-graphite`, `--ns-wash-ink`, `--ns-wash-sage`, `--ns-wash-sand`, `--ns-weight-medium`.
- Retune it (on any ancestor) with the foundation's roles and hooks: `--ns-bad`, `--ns-bad-ink`, `--ns-band`, `--ns-band-edge`, `--ns-band-grade`, `--ns-band-optimal`, `--ns-beat`, `--ns-bezel`, `--ns-canvas`, `--ns-cat-1`, `--ns-cat-2`, `--ns-cat-3`, `--ns-cat-4`, `--ns-cat-5`, `--ns-cat-6`, `--ns-check`, `--ns-chip`, `--ns-control`, `--ns-control-pad`, `--ns-control-sm`, `--ns-deep`, `--ns-deep-ink`, `--ns-deep-ink-2`, `--ns-deep-line`, `--ns-dialog`, `--ns-dialog-lg`, `--ns-dialog-sm`, `--ns-ease`, `--ns-ease-in`, `--ns-ease-panel`, `--ns-ease-pop`, `--ns-field`, `--ns-flood-arc`, `--ns-flood-aurora`, `--ns-flood-behind-1`, `--ns-flood-behind-2`, `--ns-flood-bloom`, `--ns-flood-deep`, `--ns-flood-dial-bloom`, `--ns-flood-glass`, `--ns-flood-grain`, `--ns-flood-image`, `--ns-flood-ink`, `--ns-flood-ink-low`, `--ns-flood-light`, `--ns-flood-mid`, `--ns-flood-pale`, `--ns-flood-pane`, `--ns-flood-pane-edge`, `--ns-flood-pill-ink`, `--ns-flood-ribbon`, `--ns-flood-ribbon-core`, `--ns-flood-shadow`, `--ns-flood-sheen`, `--ns-flood-wash`, `--ns-font-body`, `--ns-font-display`, `--ns-font-mono`, `--ns-font-script`, `--ns-glass`, `--ns-glass-blur`, `--ns-glass-shadow`, `--ns-glow`, `--ns-grain`, `--ns-gutter`, `--ns-header`, `--ns-heat`, `--ns-hover`, `--ns-ink`, `--ns-ink-2`, `--ns-ink-3`, `--ns-ink-4`, `--ns-leading`, `--ns-lift`, `--ns-light-1`, `--ns-light-2`, `--ns-light-3`, `--ns-light-spread`, `--ns-light-strength`, `--ns-line`, `--ns-line-soft`, `--ns-lit-edge`, `--ns-menu-dy`, `--ns-menu-row`, `--ns-mesh`, `--ns-mesh-frost`, `--ns-ok`, `--ns-ok-ink`, `--ns-orb-body`, `--ns-orb-cool`, `--ns-orb-core`, `--ns-orb-dawn`, `--ns-orb-deep`, `--ns-orb-edge`, `--ns-orb-grain`, `--ns-orb-ground`, `--ns-orb-halo`, `--ns-orb-inner`, `--ns-orb-key`, `--ns-orb-lift`, `--ns-orb-limb`, `--ns-orb-limb-from`, `--ns-orb-rim`, `--ns-orb-skin-hi`, `--ns-orb-skin-lo`, `--ns-orb-skin-mid`, `--ns-orb-warm`, `--ns-panel`, `--ns-panel-w`, `--ns-prism-edge`, `--ns-prism-glint`, `--ns-prism-sheen`, `--ns-prism-tint`, `--ns-pulse`, `--ns-radius`, `--ns-radius-card`, `--ns-radius-full`, `--ns-radius-lg`, `--ns-radius-sm`, `--ns-radius-xl`, `--ns-raised`, `--ns-range`, `--ns-row`, `--ns-row-compact`, `--ns-segment`, `--ns-selected`, `--ns-series`, `--ns-series-core`, `--ns-series-lilac`, `--ns-series-tint`, `--ns-shadow-dialog`, `--ns-shadow-float`, `--ns-shadow-panel`, `--ns-sheet`, `--ns-sheet-bottom`, `--ns-side`, `--ns-signal`, `--ns-sleep-awake`, `--ns-sleep-deep`, `--ns-sleep-light`, `--ns-sleep-rem`, `--ns-space-1`, `--ns-space-2`, `--ns-space-3`, `--ns-space-4`, `--ns-space-5`, `--ns-space-6`, `--ns-space-8`, `--ns-space-section`, `--ns-stack-on`, `--ns-standing-critical`, `--ns-standing-in`, `--ns-standing-out`, `--ns-state-doing`, `--ns-state-done`, `--ns-state-review`, `--ns-state-todo`, `--ns-switch-h`, `--ns-switch-w`, `--ns-text-body`, `--ns-text-control`, `--ns-text-display`, `--ns-text-figure`, `--ns-text-headline`, `--ns-text-hero`, `--ns-text-lede`, `--ns-text-meta`, `--ns-text-page`, `--ns-text-record`, `--ns-text-small`, `--ns-text-strong`, `--ns-text-sub`, `--ns-text-title`, `--ns-tile-shadow`, `--ns-time-born`, `--ns-time-color`, `--ns-time-dialog`, `--ns-time-menu`, `--ns-time-page`, `--ns-time-panel`, `--ns-time-toast`, `--ns-tint`, `--ns-tint-ink`, `--ns-toast-bottom`, `--ns-toast-left`, `--ns-touch`, `--ns-tracking-display`, `--ns-tracking-headline`, `--ns-warn`, `--ns-warn-ink`, `--ns-wash-clay`, `--ns-wash-dusk`, `--ns-wash-graphite`, `--ns-wash-ink`, `--ns-wash-sage`, `--ns-wash-sand`, `--ns-weight-light`, `--ns-weight-medium`, `--ns-weight-regular`, `--ns-weight-strong`, `--ns-well`.
- Never add Tailwind colour classes inside the component.

```tsx
import { ShowcaseSurface, ShowcaseWall } from "@/components/ui/notchset/blocks/showcase-wall";
```

## Parts
- A single export that takes props.

## Match the original
- Read `components/ui/notchset/blocks/showcase-wall.tsx` as the reference implementation before changing or recreating anything, and match it: sizes, colours per theme, motion timings, copy and behaviour.
- If you deviate (a prop you can't honour, a style you changed, a dependency you swapped), say so in your reply, part by part.
- Keep the accessibility contract, the keyboard map and the motion levels listed below.

## Use it when

### Not when

## Mistakes
- Recreating the component instead of installing it

## Usage

```tsx
"use client";
import { ShowcaseSurface, ShowcaseWall } from "@/components/ui/notchset/blocks/showcase-wall";
import { ForecastBar } from "@/components/ui/notchset/blocks/forecast-bar";
import { TickBar } from "@/components/ui/notchset/tick-bar";

/* any piece goes in a tile; the wall only frames and paces them */
export default function ShowcaseWallDemo() {
  return (
    <ShowcaseWall
      eager
      tiles={[
        {
          id: "forecast",
          title: "Forecast bar",
          hint: "Won, commit and best case against target",
          span: 7,
          wash: "sage",
          height: 280,
          content: (
            <ShowcaseSurface className="max-w-[460px]">
              <ForecastBar won={420} commit={310} best={180} target={1200} call={1180} size="lg" label="Team forecast against target" />
            </ShowcaseSurface>
          ),
        },
        {
          id: "quota",
          title: "Tick bar",
          hint: "How far toward the target",
          span: 5,
          wash: "ink",
          height: 280,
          content: (
            <ShowcaseSurface className="max-w-[320px]">
              <TickBar label="Won and committed against target" value={1_420_000} done={680_000} max={2_000_000} figure="71%" valueText="$1.42M of $2M" />
            </ShowcaseSurface>
          ),
        },
      ]}
    />
  );
}
```

This example also uses `forecast-bar` (https://notchset.dev/blocks/forecast-bar), `tick-bar` (https://notchset.dev/components/tick-bar). Installing this item doesn't bring them; to paste the example as it is: `npx shadcn@latest add @notchset/showcase-wall @notchset-pro/forecast-bar @notchset/tick-bar`. The `@notchset-pro` items are Pro: they need the registries in components.json and the key (Setup).

## Props

| Prop | Type | Default | What it does |
|---|---|---|---|
| `tiles` | `ShowcaseTile[]` |  | Required. |
| `label` | `string` | `"Live pieces"` |  |
| `eager` | `boolean` | `false` |  |

Full docs: https://notchset.dev/blocks/showcase-wall

## Customising
- Colours: every part reads the foundation's roles (`--ns-canvas`, `--ns-ink`, `--ns-line`, `--ns-signal` …), which read your shadcn tokens (`--background`, `--foreground`, `--border`, `--destructive` …), plus the optional `--success` and `--warning`. Retheme on `:root` or any container; never add Tailwind colour classes inside the component.
- Dark mode follows the `.dark` class or `data-theme="dark"` on an ancestor (the shadcn and next-themes conventions).
- Update later: Commit or stash local changes first (or copy the files), so the update can be undone. Read https://notchset.dev/r/changelog.json for the new versions: a major version, an entry marked breaking or a merge says what to change. Then re-run the install with `--overwrite`, on a branch. It replaces the component's files, the shared helper files they import, and the item's CSS rules in the global stylesheet, so review the whole diff (components, shared files, CSS), re-apply your own edits, and run the app's typecheck, tests and build.

## Accessibility contract (preserve when editing)

## Install

```bash
npx shadcn@latest add https://notchset.dev/r/showcase-wall.json
```

Or add the `@notchset` registry to components.json and run `npx shadcn@latest add @notchset/showcase-wall`. Every components.json style gets the same files.

## Source

### components/ui/notchset/blocks/showcase-wall.tsx

```tsx
// Notchset showcase-wall 2.2.0 · https://notchset.dev/changelog
"use client";
import * as React from "react";
import { cn } from "@/lib/utils";

/*
 * Showcase wall: the live pieces a homepage leads with, each big and touchable on a soft wash that bleeds in from
 * the panel's edges, with the piece's name and what happens when you touch it underneath. Any piece goes in a tile;
 * the wall only frames and paces them. Tiles mount as they come near the screen (a fixed height holds their place,
 * so nothing jumps) and fade in; `eager` mounts them all at once, for a catalogue or a check that reads every piece. On a tablet the 8 | 4 pairs even out to 6 | 6; on a phone each tile takes the row.
 *
 * The wash is the only attention colour here, and it stays on the panel: the pieces keep their own meanings. An
 * "ink" tile shows its piece in the dark theme whatever the page is, so a light page still gets a night moment.
 *
 *   <ShowcaseWall tiles={[{ id: "chart", title: "Revenue chart", hint: "Drag across the year", span: 8,
 *     wash: "sage", content: <ScrubChart … /> }]} />
 */
/* "titanium" is the graphite wash's name from before the signatures, kept so a page built on it still types */
type Wash = "graphite" | "sand" | "sage" | "dusk" | "clay" | "ink" | "titanium";
type ShowcaseTile = {
  id: string;
  /** the piece's name, then what happens when you touch it */
  title: string;
  hint: string;
  /** columns of 12 on a wide screen */
  span: 4 | 5 | 6 | 7 | 8 | 12;
  wash: Wash;
  /** the stage's height in px; it holds the place before the piece mounts */
  height?: number | undefined;
  content: React.ReactNode;
  /** shown until the piece mounts (an image or a quiet still) */
  poster?: React.ReactNode;
  href?: string | undefined;
};
type ShowcaseWallProps = { tiles: ShowcaseTile[]; label?: string; eager?: boolean | undefined; className?: string | undefined };

const SPAN: Record<ShowcaseTile["span"], string> = {
  4: "min-[960px]:col-span-4",
  5: "min-[960px]:col-span-5",
  6: "min-[960px]:col-span-6",
  7: "min-[960px]:col-span-7",
  8: "min-[960px]:col-span-8",
  12: "min-[960px]:col-span-12",
};
const WASH: Record<Wash, string> = {
  graphite: "var(--ns-wash-graphite)",
  sand: "var(--ns-wash-sand)",
  sage: "var(--ns-wash-sage)",
  dusk: "var(--ns-wash-dusk)",
  clay: "var(--ns-wash-clay)",
  ink: "var(--ns-wash-ink)",
  titanium: "var(--ns-wash-graphite)",
};
/* a fine grain over the wash, so the colour reads as material rather than a flat fill */
const GRAIN =
  "url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E\")";

/** Mounts its children once they come within a screen of the viewport; renders the poster until then. */
function useNear<T extends Element>(eager: boolean) {
  const ref = React.useRef<T>(null);
  /* the server and the first client render agree (posters), so a page that renders on the server hydrates cleanly */
  const [near, setNear] = React.useState(eager);
  React.useEffect(() => {
    const el = ref.current;
    if (near || !el) return;
    if (typeof IntersectionObserver === "undefined") {
      const t = setTimeout(() => setNear(true));
      return () => clearTimeout(t);
    }
    const io = new IntersectionObserver((es) => {
      if (es.some((e) => e.isIntersecting)) {
        setNear(true);
        io.disconnect();
      }
    }, { rootMargin: "100% 0px" });
    io.observe(el);
    return () => io.disconnect();
  }, [near]);
  return [ref, near] as const;
}

function Tile({ t, eager }: { t: ShowcaseTile; eager: boolean }) {
  const [ref, near] = useNear<HTMLDivElement>(eager);
  const w = WASH[t.wash];
  const ink = t.wash === "ink";
  /* the stage holds a fixed place (a little less on a phone); it may grow taller for content that wraps, never shorter */
  const h = t.height ?? 420;
  return (
    <figure data-tile={t.id} className={cn("col-span-12 m-0 flex min-w-0 flex-col gap-3 min-[600px]:max-[960px]:col-span-6", t.span === 12 && "min-[600px]:max-[960px]:col-span-12", SPAN[t.span])}>
      <div
        ref={ref}
        className={cn("relative isolate flex min-h-[calc(var(--h)*0.7px)] min-w-0 items-center justify-center overflow-hidden rounded-[28px] px-5 py-8 min-[600px]:min-h-[calc(var(--h)*1px)] min-[600px]:px-8", ink && "dark text-[var(--ns-ink)]")}
        style={{
          ["--h" as string]: h,
          background: ink
            ? `radial-gradient(120% 90% at 0% 0%, color-mix(in oklab, ${w} 70%, #3a3f4c) 0%, transparent 60%), radial-gradient(100% 80% at 100% 100%, color-mix(in oklab, ${w} 75%, #2a2e38) 0%, transparent 55%), ${w}`
            : `radial-gradient(120% 90% at 0% 0%, ${w} 0%, transparent 62%), radial-gradient(100% 85% at 100% 100%, ${w} 0%, transparent 58%), color-mix(in oklab, ${w} 28%, var(--ns-canvas))`,
          boxShadow: "inset 0 0 0 1px color-mix(in oklab, var(--ns-line) 60%, transparent)",
        }}
      >
        <span aria-hidden className="pointer-events-none absolute inset-0 -z-10 opacity-[0.07] mix-blend-overlay" style={{ backgroundImage: GRAIN }} />
        {near ? (
          <div data-ns-moves="" className="flex w-full min-w-0 justify-center [animation:ns-fade_var(--ns-time-page)_var(--ns-ease)_both]">
            {t.content}
          </div>
        ) : (
          (t.poster ?? null)
        )}
      </div>
      <figcaption className="flex items-baseline gap-2 px-1 text-[length:var(--ns-text-small)]">
        <span className="font-[number:var(--ns-weight-medium)] text-[var(--ns-ink)]">{t.title}</span>
        <span className="min-w-0 flex-1 text-[var(--ns-ink-3)] min-[600px]:truncate">{t.hint}</span>
        {t.href && (
          <a href={t.href} aria-label={`Open ${t.title}`} className="shrink-0 rounded-[5px] px-1 text-[var(--ns-ink-3)] outline-hidden hover:text-[var(--ns-ink)] focus-visible:outline-2 focus-visible:outline-[var(--ns-signal)]">
            ↗
          </a>
        )}
      </figcaption>
    </figure>
  );
}

/** The card a piece sits on inside a tile: the app's own panel, lifted off the wash. */
function ShowcaseSurface({ children, className }: { children: React.ReactNode; className?: string | undefined }) {
  return <div className={cn("w-full min-w-0 rounded-[var(--ns-radius-xl)] bg-[var(--ns-panel)] p-5 text-[var(--ns-ink)] shadow-[var(--ns-shadow-float)]", className)}>{children}</div>;
}

function ShowcaseWall({ tiles, label = "Live pieces", eager = false, className }: ShowcaseWallProps) {
  return (
    <section data-slot="showcase-wall" aria-label={label} className={cn("grid grid-cols-12 gap-x-4 gap-y-8", className)}>
      {tiles.map((t) => (
        <Tile key={t.id} t={t} eager={eager} />
      ))}
    </section>
  );
}

export { ShowcaseSurface, ShowcaseWall, type ShowcaseTile, type ShowcaseWallProps, type Wash };
```

The foundation (the tokens listed above, keyframes and motion levels) installs once with the first component; its CSS is public at https://notchset.dev/r/notchset-foundation.json.
