precedent
1.0.0
Building blocks for your Next project
Introduction · One-click Deploy · Tech Stack + Features · Author
Precedent is an opinionated collection of components, hooks, and utilities for your Next.js project.
You can deploy this template to Vercel with the button below:
You can also clone & create this repo locally with the following command:
npx create-next-app precedent --example "https://github.com/steven-tey/precedent"Then, install the dependencies with your package manager of choice:
npm i
yarn
pnpm inext/font – Optimize custom fonts and remove external network requests for improved performanceImageResponse – Generate dynamic Open Graph images at the edgeuseIntersectionObserver – React hook to observe when an element enters or leaves the viewportuseLocalStorage – Persist data in the browser's local storageuseScroll – React hook to observe scroll position (example)nFormatter – Format numbers with suffixes like 1.2k or 1.2Mcapitalize – Capitalize the first letter of a stringtruncate – Truncate a string to a specified lengthuse-debounce – Debounce a function call / state update