Skip to content
项目

Aslam97/react-fancy-switch

在 GitHub 查看

关于

React Fancy Switch

网站与应用开发

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
0
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文
React Fancy Switch

License npm version npm downloads Unpacked size

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.

探索相关项目

加载中…