shadcn/ui copies components straight into your repo, so an admin screen can be reshaped to the client's wishes without waiting on anyone else's package.
In brief
- shadcn/ui is not a library you install: the CLI copies component code into your repo, and you edit it there
- The Sidebar comes ready-made; the Data Table you assemble yourself on TanStack Table by following a guide
- If the code is yours, so are the patches: there are no automatic updates, and rerunning the generator overwrites files
On Monday you meet the client; on Friday you have to demo an agent that processes orders. The agent works, but the client’s operators need a screen to review its output, and the project has no designer.
What you need in that week is a tool that lets you change any line of the interface inside your own repo. A polished but closed UI library, one you have to work around for every change, slows you down precisely when speed matters most.
shadcn/ui takes that approach. Its GitHub repository describes it as composable components with accessibility support. The official documentation goes further: it is not a component library, but a way to build your own component library.
For an FDE, the distinction is more than wording. Every demo reaches the moment when the client wants one small detail changed. Editing a file you own is far quicker than finding a way into a package someone else maintains.
The component code lives in your repo
The project calls this principle Open Code. The documentation is blunt: the top layer of component code is yours to edit, and if you want to change a button, you open the button’s code and change it. When the client wants the status column to show a red badge for overdue orders, you do not override someone else’s styles or wait for a reply on an issue.
Vercel Academy puts it neatly: traditional libraries create a dependency relationship, while shadcn/ui creates an ownership relationship. Styling is built on Tailwind CSS. Version 4.0 shipped on January 22, 2025, and its biggest change moved project configuration from JavaScript to CSS.
The order review demo, step by step
Back to the order review screen. Say you start from a Vite project using React and TypeScript. Tailwind v4 with Vite needs two things: the
@tailwindcss/vite
plugin and one import line in your CSS file. The shadcn CLI’s
add
command then adds components and their dependencies to the project.
npm install tailwindcss @tailwindcss/vite npm install -D @types/node # so vite.config can use the path module # in src/index.css, replace the entire contents with: @import "tailwindcss";
Installing the package is not enough; the plugin has to be registered in
vite.config.ts
. While you are there, declare the
@
alias pointing to
src
, because component code imports in the style
@/components/ui/button
:
// vite.config.ts
import path from "path"
import react from "@vitejs/plugin-react"
import tailwindcss from "@tailwindcss/vite"
import { defineConfig } from "vite"
export default defineConfig({
plugins: [react(), tailwindcss()],
resolve: { alias: { "@": path.resolve(__dirname, "./src") } },
})TypeScript also has to understand that alias. In
tsconfig.json
, and in
tsconfig.app.json
if your template splits the files, add two entries to
compilerOptions
:
"baseUrl": "."
and
"paths": { "@/*": ["./src/*"] }. Skip this and
init
struggles to run cleanly while
@/...
imports throw errors, an easy trap when you are in a hurry.
npx shadcn@latest init npx shadcn@latest add sidebar table button npm install @tanstack/react-table
Because Tailwind v4 is configured in CSS, the place to switch to the client’s brand colors is a CSS file, not a JavaScript one. Being able to change it quickly pays off. When the client’s leadership sees their own brand colors on screen, it is easier for them to see the tool as belonging to their company rather than as an outsider’s prototype.
add sidebar
gives you a navigation bar the documentation describes as composable, themeable and customizable: menu on the left, content on the right, the familiar frame of every admin page.
The most work goes into the orders table. shadcn/ui’s Data Table is not a prepackaged table. Instead of shipping a component, the documentation offers a guide for assembling your own table on TanStack Table.
Assembling the table yourself turns out to suit client work. Say you have 200 orders the agent has processed. The operators only need to filter by the status that needs review, sort by creation date so the oldest orders come first, and click a row to see what the agent decided.
You define exactly those columns and attach exactly one sort and one filter, nothing more. Below is a minimal sketch with all imports in place; you add the table rendering with the
Table
components by following the guide:
// columns.tsx
import { ColumnDef } from "@tanstack/react-table"
import { Button } from "@/components/ui/button"
export type Order = { id: string; status: "needs_review" | "approved"; createdAt: string }
export const columns: ColumnDef<Order>[] = [
{ accessorKey: "id", header: "Order ID" },
{ accessorKey: "status", header: "Status" },
{
accessorKey: "createdAt",
header: ({ column }) => (
<Button variant="ghost"
onClick={() => column.toggleSorting(column.getIsSorted() === "asc")}>
Created
</Button>
),
},
]// data-table.tsx (sketch: table-rendering JSX omitted)
import { useState } from "react"
import {
useReactTable,
getCoreRowModel,
getSortedRowModel,
getFilteredRowModel,
SortingState,
ColumnFiltersState,
} from "@tanstack/react-table"
import { columns, Order } from "./columns"
export function OrdersTable({ data }: { data: Order[] }) {
const [sorting, setSorting] = useState<SortingState>([])
const [columnFilters, setColumnFilters] = useState<ColumnFiltersState>([])
const table = useReactTable({
data, columns,
getCoreRowModel: getCoreRowModel(),
getSortedRowModel: getSortedRowModel(),
getFilteredRowModel: getFilteredRowModel(),
onSortingChange: setSorting,
onColumnFiltersChange: setColumnFilters,
state: { sorting, columnFilters },
})
// "Needs review" button: table.getColumn("status")?.setFilterValue("needs_review")
// ...render table.getHeaderGroups() and table.getRowModel().rows
}The price of owning the code
The downside sits inside the upside. Vercel Academy spells out the cost: you lose automatic updates and automatic security patches. According to PkgPulse, updating means rerunning the generator command for a component, and that command overwrites the file, so your changes can be lost if you do not compare them first.
Nor do you own everything. PkgPulse notes that copied components still rely on Radix packages in node_modules. What you hold is the top layer; underneath, the dependencies remain as usual.
Accessibility needs attention too. The components start out built with accessibility in mind, but once you change the markup to suit the client, nobody checks it again for you. For a demo that is acceptable. If the screen is about to become an internal tool in production, agree with the client on who will own the interface code before handover.
The ecosystem is still moving. The August 2026 changelog records that the GitHub registry now works with private repos, meaning a team can collect its customized internal components in one private place. For a client with several projects, that is worth suggesting at handover.
The final limitation is the Data Table. Because you assemble it yourself, it is where you will lose the most time if TanStack Table is new to you. Learn it before you have a contract, not on Thursday night.
What to learn first, and how to put it on a CV
The sensible order is Tailwind first, since the components are built on it, together with configuring the plugin and alias in Vite. Then the
init
and
add
commands, and then most of your time on TanStack Table, the one part you have to understand properly rather than copy in and use.
On the career side, a working admin screen is something a hiring manager can click through themselves, which says more than any line listing skills. Do not write a generic “knows React” on your CV. Write something like “built a review interface for agent output, with sorting and filtering on real data”, and link the repo.
You do not need to be a designer. What is worth proving is that when the client asks “can you show me?”, you can open a screen for them on the spot.
Was this article useful?
Thanks for the feedback!
10 sources
- Introduction - shadcn/ui
- shadcn - shadcn/ui
- GitHub - shadcn-ui/ui: Composable, accessible components with thoughtful defaults.
- Data Table
- Sidebar - shadcn/ui
- Changelog - shadcn/ui · 2026-08
- Tailwind CSS v4.0 - Tailwind CSS · 2025-01-22
- Installing Tailwind CSS with Vite - Tailwind CSS
- Why shadcn/ui is Different (Vercel Academy) · 2025-10-17
- shadcn/ui vs Radix UI: Component Library vs 2026 (PkgPulse Guides) · 2026-03-08