项目
在 GitHub 查看
steven-tey/precedent
关于
为 Next.js 项目提供的一套具有明确设计取向的组件、hooks 和实用工具。
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- -2
- 15天
- -2
- 1个月
- -3
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Precedent
Building blocks for your Next project
Introduction · One-click Deploy · Tech Stack + Features · Author
Introduction
Precedent is an opinionated collection of components, hooks, and utilities for your Next.js project.
One-click Deploy
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 i
Tech Stack + Features
https://github.com/user-attachments/assets/aef3c099-e371-43bf-b426-f5ba73185a7c
Frameworks
- Next.js – React framework for building performant apps with the best developer experience
- Clerk - A comprehensive user management platform with beautifully designed, drop-in React components
Platforms
- Vercel – Easily preview & deploy changes with git
UI
- Tailwind CSS – Utility-first CSS framework for rapid UI development
- Radix – Primitives like modal, popover, etc. to build a stellar user experience
- Framer Motion – Motion library for React to animate components with ease
- Lucide – Beautifully simple, pixel-perfect icons
next/font– Optimize custom fonts and remove external network requests for improved performanceImageResponse– Generate dynamic Open Graph images at the edge
Hooks and Utilities
useIntersectionObserver– 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 like1.2kor1.2Mcapitalize– Capitalize the first letter of a stringtruncate– Truncate a string to a specified lengthuse-debounce– Debounce a function call / state update
Code Quality
- TypeScript – Static type checker for end-to-end typesafety
- Prettier – Opinionated code formatter for consistent code style
- ESLint – Pluggable linter for Next.js and TypeScript
Miscellaneous
- Vercel Analytics – Track unique visitors, pageviews, and more in a privacy-friendly way
Author
- Steven Tey (@steventey)
探索相关项目
加载中…