Sections
All-AccessNewCanvasIndigo dye works header: the nav is a split shop-door curtain, five panels in the five shades sold, the hand parts the cloth
Use it as the sticky header of a craft, food or shop site with up to six sections. Each nav item is a panel of dyed cloth; the current page's panel is hitched up on a peg.
pnpm dlx shadcn@latest add @motionkit-pro/norennpx shadcn@latest add @motionkit-pro/norenyarn dlx shadcn@latest add @motionkit-pro/norenbunx --bun shadcn@latest add @motionkit-pro/norenRequires an All-Access or Signature license and the @motionkit-pro registry with your token. See Installation.
The files land in components/sections/.
import { Noren } from "@/components/sections/noren"
export default function Header({ pathname }: { pathname: string }) {
return (
<Noren
active={pathname}
content={{
brand: { name: "Kura", href: "/", place: "Kyoto" },
items: [
{ label: "Shop", href: "/shop", dips: 4 },
{ label: "Workshop", href: "/workshop", dips: 12 },
{ label: "Visit", href: "/visit", dips: 24 },
],
cta: { label: "Book a visit", href: "/visit/book", note: "Open Saturdays" },
}}
/>
)
}Every text sits in one typed content prop; each key you pass replaces the default copy (an indigo
dye house in Tokushima).
| Key | Type | Notes |
|---|---|---|
brand | { name, href, place? } | The first, darkest panel. |
items | NorenItem[] | One panel each: { label, href, dips?, shade? }. |
cta | { label, href, note? } | The cedar tablet on the right; note hangs under it. |
navLabel | string | Accessible name of the navigation. |
menuLabel | string | Last panel on small screens, opens the drawer. |
closeLabel | string | Close button of the drawer. |
homeLabel | (brand) => string | Accessible name of the brand panel. |
dipsLabel | (dips) => string | Text of the hem seal ("30 dips"). |
dips is stamped on the current panel's seal; leave it out for no seal. shade overrides the
derived colour of one panel.
None: the cloth and its linen are drawn, so there is nothing to supply.
shades (default): a shade card of indigo, palest to darkest. Preview it with ?demo=default.kon: one deep navy with a resist-white band. Preview it with ?demo=kon.kakishibu: persimmon tannin cloth with dark lettering. Preview it with ?demo=kakishibu.Prop
Type
Every colour is a prop and takes any CSS colour: hex, RGB, HSL or OKLCH. The panel shades are
derived from indigo in OKLab (from persimmon on kakishibu) and stay dark enough for AA
lettering in resist; the cloth's shadows are indigo taken nearly to black.
<Noren
colors={{
indigo: "#1f2f6b",
persimmon: "#b7652f",
rod: "#d8c27a",
resist: "#f7f4ec",
ink: "#3a2416",
seal: "#c0392b",
cedar: "#d7b98a",
page: "#f2ede1",
iron: "#3a3f4a",
}}
/>use-prefers-reduced-motion, fx-runtime, section-runtime.nav of links with aria-current="page"; the cloth, rod and seals are aria-hidden.stack: below 1100 px the curtain keeps the brand, the current panel and a menu panel that drops a
long noren in a drawer. On touch a breath of wind passes every 12 s; vertical scroll is never blocked.
One still frame: the current panel hitched, no swing; folding up on scroll is a cut.
pnpm size).Main spring of each temperament. Set it with the temperament prop or MotionKitProvider; the default is lively.
Not measured yet · budget 16.0 kB gzip
Component and MotionKit helpers; excludes react, react-dom, @radix-ui/react-dialog.
—
One still frame: the current panel hitched, no swing; folding up on scroll is a cut.
No keyboard interaction of its own.
Last 2 versions of Chrome, Edge, Firefox and Safari (iOS 16.4+)