Story: Variants
Button
High-signal actions with strong defaults for primary, outline, ghost, and destructive flows.
A high-end developer reference implementation for scalable React architectures. Isolated patterns, real-world examples, and production-ready code.
Most pattern libraries stop at a Gist. We provide the full context.
React Principles is a collection of isolated patterns combined with real-world implementations. We show you how a pattern behaves in a Next.js 16 Server Component environment versus a Vite-based Client-side application.
Decoupled logic that works across different React frameworks.
Battle-tested solutions for state management, data fetching, and forms.
35 accessible, zero-dependency components built with pure Tailwind CSS.
Add any component to your project instantly with a single command.
Each recipe covers the why, the constraints, the pattern, and a real implementation — side by side for Next.js and Vite.
Three categories of state — local, shared, and server — and exactly which tool handles each one.
How components combine and communicate — children props, slot patterns, and why composition beats deep prop drilling.
Fetch, cache, and synchronize server data with TanStack Query v5. Pagination, search, and background refetching.
Schema-first validation with React Hook Form and Zod. Type-safe, declarative error messages, zero boilerplate.
Each Cookbook recipe follows the same rigid, helpful structure.
The architectural reason this pattern exists — which problem it solves and what goes wrong without it.
A set of immutable rules for implementation to ensure consistency and avoid anti-patterns.
The pure, abstract implementation — decoupled from any specific feature or framework.
The same pattern applied to Next.js App Router and Vite side by side. Switch frameworks with one click.
Jump directly to the file in the react-principles-nextjs starter — see how the pattern lives in a working codebase.
Interact with a working implementation of the pattern — available on Applied recipes.
Copy-paste components that power the Cookbook patterns — fully accessible, built with Tailwind v4, and yours to customize completely.
Storybook signal
Variants, states, and prop combinations are lifted from the component stories so the marketing layer stays honest to the implementation.
Story: Variants
High-signal actions with strong defaults for primary, outline, ghost, and destructive flows.
Story: Default
Form choices keep labels, descriptions, and validation feedback aligned in one primitive.
Storybook-backed preview configuration.
Story: States
Selection controls cover checked, indeterminate, and descriptive states without extra wrappers.
Story: Pills
Navigation between overview, API, and examples mirrors the same content model shown in docs stories.
Typed props line up with the component source and docs tables.
Browse the full component reference or open the Cookbook to see these primitives inside real production flows.
Configure your style, pick your components, choose your stack — then get a ready-to-use preset you can bootstrap instantly with the CLI or copy-paste directly into your project.
Style preset
Framework
Components
Stack
Available skills
The cookbook compiled for AI assistants. Drop our principles into any AI context window, or install invocable skills that scaffold and review code following documented patterns.
Curated from the best tools in the React ecosystem.
Next.js 16
App Router
Vite
Build System
TanStack Query
Data Fetching
TanStack Table
Headless Tables
Zustand
State Mgmt
Hook Form
Form Logic
Zod
Validation
Tailwind CSS
Styling
react-principles
UI Library
One Next.js codebase with clear boundaries for app routes, feature modules, shared logic, and UI primitives.