A label above a control, then a hint or the error.
Every shadcn style · one file
v2.0 · Updated Oct 13pnpm dlx shadcn@latest add https://notchset.dev/r/field.jsonpnpm dlx shadcn@latest add https://notchset.dev/r/field.jsonFree, no account or key. One command for every shadcn style. With the @notchset registry added, @notchset/<name> works too.
Works with React 18.3 or 19 on Tailwind CSS v4, in any shadcn project. What's tested
pnpm add @base-ui/react@^1The 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 { Field, FieldControl, fieldSurface } from "@/components/ui/notchset/field";
/* Field gives any control its label and its hint or error; TextField and TextArea are built on it. */
export default function FieldDemo() {
const [seats, setSeats] = React.useState("12");
const n = Number(seats);
const error = !seats.trim() || !Number.isInteger(n) || n < 1 ? "A whole number of seats, like 12" : n > 10 ? "Growth holds 10 seats. Pick Scale for more." : undefined;
return (
<div className="w-[280px]">
<Field label="Seats" hint="Everyone who signs in needs one" error={error}>
<FieldControl inputMode="numeric" value={seats} onChange={(e) => setSeats(e.target.value)} className={`${fieldSurface} h-[var(--ns-field)]`} />
</Field>
</div>
);
}components/ui/notchset/field.tsx
label–
React.ReactNodehint–
React.ReactNodeerror–
React.ReactNodeShown under the control and read with it; also marks the control invalid.
disabled–
booleanname–
stringGive your coding assistant the Markdown guide instead of screenshots.
https://notchset.dev/api/mcp (setup)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.