What each column of an imported file becomes, checked before anything is added.
Every shadcn style · one file
v2.1 · Updated Oct 21pnpm dlx shadcn@latest add @notchset-pro/column-mappnpm dlx shadcn@latest add @notchset-pro/column-mapNeeds your registry key. Every components.json style gets the same files.
Works with React 18.3 or 19 on Tailwind CSS v4, in any shadcn project. What's tested
The CLI adds the styles to the CSS file named in components.json (tailwind.css). Check that it points at your global stylesheet, that the project uses Tailwind CSS v4, and that the file is imported in your root layout. Installed by hand: paste styles.css into that file.
Import it and pass your content. The props that matter most are listed next.
"use client";
import * as React from "react";
import { ColumnMap } from "@/components/ui/notchset/blocks/column-map";
const HEAD = ["Title", "Owner", "Due", "Area"];
const FIRST = ["Show a van's remaining capacity", "Tomás", "2026-11-04", "Routing"];
const TARGETS = [
{ value: "title", label: "Title" },
{ value: "assignee", label: "Assignee" },
{ value: "due", label: "Due date" },
{ value: "labels", label: "Labels" },
];
export default function ColumnMapDemo() {
/* the first mapping is the host's guess from the headers; Area matched nothing, so it is left out */
const [map, setMap] = React.useState(["title", "assignee", "due", "skip"]);
return (
<div className="w-full max-w-[560px]">
<ColumnMap columns={HEAD.map((name, i) => ({ name, sample: FIRST[i] }))} value={map} options={TARGETS} onValueChange={setMap} />
</div>
);
}components/ui/notchset/blocks/column-map.tsx
This component is included with Pro.
Try the live preview above. Get Pro to install the source.
columns–
ColumnMapColumn[]Required.
value–
string[]what each column becomes, by position; `skip` leaves it out
options–
{ value: string; label: string }[]the targets a column can become; "Leave out" (skip) is always offered first
onValueChange–
(next: string[]) => voidRequired.
skipLabel"Leave out"
stringthe words for leaving a column out
Give your coding assistant the Markdown guide instead of screenshots.
https://notchset.dev/api/mcp (setup)v2.1.0 · 2026-10-21
New: an import's middle step, each column with its first value and what it becomes; a target belongs to one column at a time.
v2.0.0 · 2026-10-13
Released with the Notchset system.
The same file, at work in a finished app. Open it live and find it on its pages.
Pro is in early access.