Skip to content

pastetaste

Merak Header

Navigation

Sticky aubergine header for a skin care shop: announcement strip, wide-tracked wordmark, centred links and a pill bag button with a count badge. Phones drop the links into a slide-down list.

Paste it into Claude Code: it installs the component, asks for your brand and content, and places it on the page you name.

Install

Or by hand, in a Next.js project with shadcn set up. It writes components/pastetaste/merak-header.tsx.

npx shadcn@latest add https://pastetaste.com/r/merak-header.json

Prompt

Install the pastetaste component "Merak Header" (merak-header) into this Next.js project and use it.

What it is: Sticky aubergine header for a skin care shop: announcement strip, wide-tracked wordmark, centred links and a pill bag button with a count badge. Phones drop the links into a slide-down list.

Before you place it, ask me (one short message, in my language; "skip" = sensible default): which page and section it goes in, my brand colour (hex), the text, labels or images it should show, and whether I want my logo or my own copy in the demo content. Then:

Steps:
1. If the project has no components.json, run: npx shadcn@latest init -y -d. Then run: npx shadcn@latest add https://pastetaste.com/r/merak-header.json
   (it writes components/pastetaste/merak-header.tsx; install any npm packages it reports).
2. Import it: import { MerakHeader } from "@/components/pastetaste/merak-header" (check the file for the exact named export).
3. Put it where it fits on the page I name, keep the rest of the page untouched, and pass props for my colours instead of editing the installed file.
4. It does not depend on Tailwind; colours come from CSS variables (--pt-*) or props.
5. It supports prefers-reduced-motion with a still state; do not remove it.

Props (all optional unless the type has no default):
- brand: string = 'MERAK' — Wordmark text. The header carries no icon; the wordmark is the logo.
- announcement: string = free delivery line — Thin strip above the bar. Pass an empty string to remove it.
- links: { label: string; href: string }[] = five anchor links — Centred links. Under 760px they slide down from the bar behind the burger.
- ctaLabel / count: string / number = 'Bag' / 0 — Label of the pill button and the number in its badge, such as items in the bag.
- ctaHref / onCtaClick: string / () => void = undefined — Render the button as a link with ctaHref, or as a button that calls onCtaClick.
- bg / accent: string = page colours — Optional CSS colour overrides for the bar background and the badge accent.

Live preview: https://pastetaste.com/c/merak-header
Then run the dev server, check it in the browser at desktop and mobile width, and tell me the page URL.

Props 6

PropTypeDefaultDescription
brandstring'MERAK'Wordmark text. The header carries no icon; the wordmark is the logo.
announcementstringfree delivery lineThin strip above the bar. Pass an empty string to remove it.
links{ label: string; href: string }[]five anchor linksCentred links. Under 760px they slide down from the bar behind the burger.
ctaLabel / countstring / number'Bag' / 0Label of the pill button and the number in its badge, such as items in the bag.
ctaHref / onCtaClickstring / () => voidundefinedRender the button as a link with ctaHref, or as a button that calls onCtaClick.
bg / accentstringpage coloursOptional CSS colour overrides for the bar background and the badge accent.
View all →