Guides
How to build real interfaces with React, Next.js and Tailwind CSS v4, written by the team that draws MiniDev UI. Every guide uses code you can install today.
9 min readBest React UI library for AI coding agents (Claude Code, Cursor, Codex)Which React UI library do AI coding agents use best? Nine libraries compared on source access, llms.txt, MCP servers, install and styling an agent can follow.Read the guide7 min readHow to use shadcn registries with Claude Code and Cursor (MCP)Connect the shadcn MCP server to Claude Code, Cursor, VS Code and Codex, add namespaced and private registries, and get agents installing real components.Read 10 min readllms.txt for component libraries: what to put in itWhat a UI component library's llms.txt should contain: quick start, code rules, a one-line index, llms-full.txt and Markdown pages, generated from the source.Read 20 min readAI agent UI in React: tool calls, approvals, run traces and streamingBuild the UI for an AI agent in React: a live run trace, tool call results, human approval before risky tools, token usage and a stop button. Provider agnostic.Read 10 min readAGENTS.md and Cursor rules for consistent UI generationWrite AGENTS.md, CLAUDE.md and Cursor rules that make AI agents build UI the same way every time: what to include, a template, and checks that enforce it.Read 11 min readDesign tokens that AI agents can follow (Tailwind v4)Design tokens AI coding agents use correctly: semantic names, a small closed set, one set for light and dark, Tailwind v4 classes, motion presets, a lint check.Read 11 min readTypes of Charts: A Complete Guide to Choosing the Right OneBar, line, area, pie, donut, funnel, sankey, treemap, radar and more: what each chart type is best for, when to avoid it, and a live example of every one.Read 9 min readTypes of Navigation Menus: Which One Your Site or App NeedsTop navbar, mega menu, sidebar, tabs, breadcrumbs, pagination, command palette, dock and more: what each navigation pattern is for, with live React examples.Read 7 min readTypes of Buttons in UI Design: When to Use Each OnePrimary, secondary, outline, ghost, destructive, icon, split, toggle, button group, floating action and copy buttons: what each is for, with live React examples.Read 7 min readModal vs Dialog vs Drawer vs Popover: Types of Overlays ExplainedDialog, alert dialog, drawer, sheet, popover, tooltip, hover card, toast and command palette: what each overlay is for and when to use which, with live examples.Read 7 min readTypes of Form Inputs: Which Field to Use for Every QuestionText field, select, combobox, checkbox, radio, switch, slider, date picker, OTP, tags and file upload: which form input fits each question, with live examples.Read 6 min readSkeleton vs Spinner vs Progress Bar: Types of Loading and Feedback StatesSkeletons, spinners, progress bars, toasts, banners, status badges and empty states: which feedback pattern fits each wait or message, with live React examples.Read 8 min readThe best free shadcn/ui component libraries in 2026Ten free shadcn/ui compatible component libraries compared: what each is best at, license notes, primitives and links, so you can pick the right mix.Read 13 min readBuild a landing page in Next.js with shadcn-compatible blocksBuild a Next.js landing page from free shadcn-compatible blocks: section order, copy that converts, performance, and metadata and structured data for SEO.Read 18 min readBuild a SaaS dashboard in Next.js with free componentsBuild a SaaS dashboard in Next.js App Router with free React components: app shell, sidebar nav, KPI cards, charts, a data table, and empty and loading states.Read 19 min readBuild a React data table with TanStack Table and TailwindBuild a React data table with TanStack Table v8 and Tailwind: sorting, search, filters, pagination, row selection, bulk actions and column visibility.Read 23 min readAI chat UI in React: streaming messages, tool calls and reasoningBuild an AI chat UI in React: stream tokens with a ReadableStream reader, render reasoning and tool calls, auto scroll, stop and retry. Works with any provider.Read 14 min readBuild a SaaS pricing page in React and TailwindBuild a React pricing page with Tailwind: plan data, a monthly and yearly toggle with animated prices, a featured plan, a comparison table, FAQ and a11y.Read 17 min readBuild a billing page in Next.js with StripeBuild a SaaS billing page in Next.js with Stripe: plans, usage, invoices, payment methods and cancellation, loaded on the server and kept in sync by webhooks.Read 17 min readBuild a collapsible sidebar layout for a SaaS appBuild a collapsible React sidebar layout in Next.js: active links with usePathname, a Cmd+B shortcut, collapsed state saved in a cookie and a mobile drawer.Read 13 min readDesign a SaaS settings page that scalesDesign a SaaS settings page in React that scales: information architecture, autosave vs explicit save, team roles, API keys and safe destructive actions.Read 21 min readAdd a Cmd+K command palette to your React appAdd a Cmd+K command palette to React or Next.js: a global shortcut, grouped commands, fuzzy search, recent items, router navigation and combobox accessibility.Read 21 min readBuild a kanban board in React with drag and dropBuild a React kanban board with drag and drop using dnd-kit: sortable cards, moves between columns, keyboard dragging, announcements and optimistic updates.Read 13 min readOTP input in React: paste, autofill and accessibilityBuild a React OTP input that handles paste, SMS autofill, WebOTP and screen readers, with validation, a resend timer and a two-factor verify form in Tailwind.Read 17 min readFile upload in React: dropzone, progress and previewsBuild file upload in React with a drag and drop dropzone, accept rules, real upload progress, presigned S3 URLs, cancel and retry, and image previews.Read 11 min readToast notifications in Next.js: when and howAdd toast notifications to Next.js: mount one Toaster, call toast() from client components and after server actions, add undo, and keep toasts accessible.Read 9 min readHow to install components from a custom shadcn registryInstall shadcn components from any registry URL: what the item JSON contains, how registryDependencies resolve, components.json setup and common fixes.Read 10 min readMigrating a component library to Tailwind CSS v4Migrate a component library to Tailwind CSS v4: CSS-first config with @theme, the upgrade tool, renamed utilities, border and ring defaults, and OKLCH tokens.Read 13 min readDark mode in Next.js without the flashFix the dark mode flash in Next.js with a blocking head script, suppressHydrationWarning, a Tailwind v4 dark variant, system preference and theme-color.Read 14 min readOKLCH colors in Tailwind CSS v4: a theme that works in light and darkBuild a Tailwind CSS v4 color theme in OKLCH: semantic tokens with @theme inline, dark mode by redefining variables, and contrast checks you can run in code.Read 11 min readGlassmorphism in Tailwind CSS v4: frosted glass that stays readableBuild frosted glass in Tailwind CSS v4 with backdrop-blur and translucent fills, keep text readable, control the cost of backdrop-filter and add fallbacks.Read 13 min readRealistic CSS shadows that follow a light sourceBuild realistic CSS box shadows from layered, tinted shadows, drive their direction with CSS variables, and move one light source with a small pointer script.Read 12 min readBuild a split-flap display (Solari board) in ReactBuild a split-flap departure board in React: character cycling, two-half flaps with rotateX and perspective, column stagger, reduced motion and screen readers.Read 24 min readDate range picker in React with presets, two months and keyboardBuild a React date range picker with Tailwind: native date inputs first, then a two month calendar in a popover with presets, arrow keys and ISO string values.Read 20 min readMulti-step onboarding wizard in React: state, validation, progressBuild a multi-step onboarding wizard in React 19 and Tailwind: one state object, per-step validation, a progress bar, focus management and resumable drafts.Read 15 min readCharts in React with Tailwind and no charting libraryBuild area, line, bar, donut, pie and radial charts in React with plain SVG and Tailwind v4: data shapes, legends, hover values and screen reader tables.Read 18 min readProduct tour and feature spotlight in ReactBuild a product tour in React: a spotlight cutout over real UI, a popover anchored to each target, step state, keyboard support and a seen flag.Read 12 min readResizable split panes in React, keyboard accessibleBuild resizable split panes in React with Tailwind: drag and keyboard operable handles, min and max sizes, collapsible sidebars, nesting and persisted sizes.Read 15 min readGantt chart in React: timeline scale, dependencies, today lineBuild a Gantt chart in React with Tailwind: a task data model, day and week scales, dependency arrows, a today line, conflict checks and a task table.Read 14 min readGenerate QR codes in React with no dependencyGenerate QR codes in React with no npm dependency: an SVG component with error correction levels, a logo well, SVG and PNG download and a share dialog.Read 16 min readEmpty states, loading skeletons and error states in ReactHandle loading, empty and error states in React with Tailwind: layout matched skeletons, three kinds of empty state, retryable errors, toasts and Suspense.Read 13 min readHero section patterns in React and Tailwind: 8 layouts that convertEight hero section layouts for React and Tailwind v4, each with the props it takes, what it is good for, and how to keep it fast and accessible above the fold.Read 15 min readAccessible modal and drawer in React: focus, scroll lock, Escape, return focusBuild accessible modals, alert dialogs and side drawers in React: focus trap, initial and return focus, Escape, scroll lock, inert background, labels and forms.Read 9 min readBest free React UI libraries in 2026, compared honestlyNine free React UI libraries compared: shadcn/ui, Material UI, Mantine, Chakra UI, Ant Design, HeroUI, Radix, Base UI and MiniDev UI, with licenses and limits.Read 8 min readBest Tailwind CSS component libraries, free and paidNine Tailwind CSS component libraries compared, free and paid: Tailwind Plus, shadcn/ui, daisyUI, Flowbite, Preline, HeroUI, HyperUI and MiniDev UI, with costs.Read 8 min readBest React animation libraries and motion component kitsMotion, GSAP, React Spring and AutoAnimate compared with five motion component kits: Magic UI, Aceternity, Animate UI, Motion Primitives and MiniDev UI.Read 8 min readBest React chart libraries, and when you do not need oneRecharts, shadcn/ui charts, Chart.js, ECharts, Nivo, visx, Victory, Tremor and plain SVG compared, with licenses, limits and when a chart library is not needed.Read 8 min readFree Next.js SaaS templates and starter kits worth usingEight free Next.js SaaS starters compared: the official SaaS Starter, next-forge, BoxyHQ, ixartz, the Stripe starter, create-t3-app, next-enterprise and more.Read 8 min readBest shadcn/ui blocks, registries and block collectionsNine shadcn/ui block collections compared: official blocks, Tailark, Launch UI, Kibo UI, coss ui, MiniDev UI, Cult UI, blocks.so and 21st.dev, with licenses.Read