steven-tey / precedent
- вторник, 17 января 2023 г. в 00:38:04
An opinionated collection of components, hooks, and utilities for your Next.js project.
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"
@next/font
– Optimize custom fonts and remove external network requests for improved performance@vercel/og
– Generate dynamic Open Graph images on the edgereact-wrap-balancer
– Simple React component that makes titles more readableuseIntersectionObserver
– 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.2M
capitalize
– Capitalize the first letter of a stringtruncate
– Truncate a string to a specified lengthuse-debounce
– Debounce a function call / state update