프로젝트
GitHub에서 보기
Aslam97/react-fancy-switch
소개
React Fancy Switch
웹 및 앱 개발측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Original
React Fancy Switch
An accessible, animated switch / segmented control component for React. It behaves like a radio group, animates a highlighter between options without framer-motion, and works with primitive or object options.
npm install @omit/react-fancy-switch
Documentation: see the package README at packages/react-fancy-switch (also shown on npm).
Live demo: https://react-fancy-switch.netlify.app (deployed from website/; pull requests get a Netlify deploy preview).
Repository layout
| Path | Description |
|---|---|
packages/react-fancy-switch |
The published @omit/react-fancy-switch library |
website |
Demo site (Vite + React + Tailwind CSS) with end-to-end tests |
Development
Requirements: Node.js 22.12 or newer and pnpm (the version is pinned in package.json and picked up by Corepack).
pnpm install
pnpm dev # start the demo site (builds the library first)
pnpm build # build the library and the demo site
pnpm lint # ESLint
pnpm typecheck # TypeScript
pnpm test # unit tests (Vitest)
pnpm test:e2e # end-to-end tests (Playwright, needs `pnpm exec playwright install chromium` once)
pnpm format # Prettier
Other Projects
License
This project is open source and available under the MIT License.
관련 프로젝트 살펴보기
불러오는 중…