Skip to content

pastetaste

Notch Tabbar

NavigationInteraction

Tab bar with a round notch cut into its outline that springs to the active tab and carries the icon on a lifted disc, with an accent hairline along the cut.

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/notch-tabbar.tsx.

npx shadcn@latest add https://pastetaste.com/r/notch-tabbar.json
Dependenciesmotion@^12.23.0

Prompt

Install the pastetaste component "Notch Tabbar" (notch-tabbar) into this Next.js project and use it.

What it is: Tab bar with a round notch cut into its outline that springs to the active tab and carries the icon on a lifted disc, with an accent hairline along the cut.

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/notch-tabbar.json
   (it writes components/pastetaste/notch-tabbar.tsx; install any npm packages it reports: motion@^12.23.0).
2. Import it: import { NotchTabbar } from "@/components/pastetaste/notch-tabbar" (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):
- items: { id: string; label: string; icon: ReactNode; href?: string; badge?: boolean | number }[] — Tabs in order, three to six work best. A boolean badge is a dot, a number is a count. With href a tab renders as a link.
- value: string — Active tab id for controlled use.
- defaultValue: string = items[0].id — Starting tab id when uncontrolled.
- onChange: (id: string, item: NotchTab) => void — Called when a different tab is chosen.
- tone: 'ink' | 'paper' = 'ink' — Black bar or white bar.
- accent: string = var(--pt-accent, #ff4a2e) — The one accent: the disc, the hairline along the notch and the badge.
- speed: number = 1 — Spring pace; 2 is twice as quick.
- label: string = 'Primary' — Accessible name of the navigation landmark.

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

Props 8

PropTypeDefaultDescription
items{ id: string; label: string; icon: ReactNode; href?: string; badge?: boolean | number }[]-Tabs in order, three to six work best. A boolean badge is a dot, a number is a count. With href a tab renders as a link.
valuestring-Active tab id for controlled use.
defaultValuestringitems[0].idStarting tab id when uncontrolled.
onChange(id: string, item: NotchTab) => void-Called when a different tab is chosen.
tone'ink' | 'paper''ink'Black bar or white bar.
accentstringvar(--pt-accent, #ff4a2e)The one accent: the disc, the hairline along the notch and the badge.
speednumber1Spring pace; 2 is twice as quick.
labelstring'Primary'Accessible name of the navigation landmark.
View all →