React Fancy Switch
An accessible, animated switch and segmented control for React that behaves like a radio group.
- Category
- Libraries & Components
- Added
- GitHub stars
- 219
- License
- MIT
- Price
- Free
About
About React Fancy Switch
React Fancy Switch, published as @omit/react-fancy-switch, is an accessible segmented control. It acts like a radio group while a highlighter animates between the options, without needing framer-motion, and it accepts primitive values or objects. The demo shows an order type picker, a publish toggle and a pet selector with icons.
Install it with npm install @omit/react-fancy-switch. The repository holds the library and a demo site built with Vite, React and Tailwind CSS, and is licensed under MIT. It suits forms and toolbars that need a compact option switch with a bit more motion than a plain radio group.
React Fancy Switch features
5 features
- Radio group behavior
- Animated highlighter without framer-motion
- Primitive or object options
- Accessible markup
- Demo site with live examples
Install React Fancy Switch
1 command
Terminal
$ npm install @omit/react-fancy-switchWhat you can build with React Fancy Switch
3 use cases
- Choosing pickup, delivery or shipping in a checkout
- Toggling between draft and published states
- Building a compact view switcher in a toolbar
Libraries & Components
Similar to React Fancy Switch
More libraries & components like React Fancy Switch: the closest by what they do, then the most starred.
EmblorLibraryEmblor is an npm package that adds a tag input to shadcn/ui forms. It is accessible, customizable and ready to drop into a React form with a few props.
Date Range PickerLibraryDate Range Picker for shadcn offers multi-month views, typed dates, preset ranges and range comparison, built on Radix UI and Tailwind CSS. MIT licensed.
enhanced-buttonLibraryenhanced-button extends the shadcn/ui Button with an effect variant, including shine, ring hover, gooey fills and underline. No extra components needed.
ArchivedNyxb UILibraryNyxb UI, or Fusion UI, merges shadcn/ui and Magic UI into 150+ React components with Framer Motion. The project is archived but MIT licensed.
Joly UILibraryJoly UI is a free registry of 50+ accessible React components built on shadcn/ui and Radix UI, for Next.js 14+, React 19 and Tailwind CSS v4.
Cascader-ShadcnLibraryCascader-Shadcn adds an Ant Design-style cascading dropdown to shadcn/ui for hierarchical data, with click or hover expansion. Install it via the CLI.
Pricing
Ship it with Pro
The directory is free. Pro adds 6,000+ blocks, 14 premium templates and the MCP server, so your AI editor installs them for you.
4.9/5 out of 5 · 150+ reviewsfrom 150+ founders and developers.
- Secure checkout via Stripe
- Code lives in your repo
- Keep what you've shipped if you cancel
- License terms
FAQ
Frequently asked questions
What React Fancy Switch is, how to install it, its license and its alternatives.
No. The README says it animates the highlighter without framer-motion.
An accessible, animated switch and segmented control for React that behaves like a radio group.
React Fancy Switch lists Radio group behavior, Animated highlighter without framer-motion, Primitive or object options, Accessible markup and Demo site with live examples.
The directory lists these uses for React Fancy Switch: Choosing pickup, delivery or shipping in a checkout, Toggling between draft and published states and Building a compact view switcher in a toolbar.
React Fancy Switch is made by Aslam97, at https://github.com/Aslam97. Its site is https://github.com/Aslam97/react-fancy-switch.
React Fancy Switch was added to the directory on December 27, 2024.
React Fancy Switch is in Libraries & Components. Component libraries and standalone components built on shadcn/ui, covering the data tables, pickers, editors and charts the core set leaves out.
Components, Inputs, Animation, Accessible, React, Tailwind CSS, Open source and MIT. Each tag has a page listing the other resources that carry it.
Yes. React Fancy Switch's page has a Live tab beside the screenshot that loads its site in a frame.
Run npm install @omit/react-fancy-switch.
React Fancy Switch lists this command: `npm install @omit/react-fancy-switch`.
The directory lists no shadcn CLI command for React Fancy Switch. Check its docs at https://github.com/Aslam97/react-fancy-switch for how to add it.
React Fancy Switch's repository is https://github.com/Aslam97/react-fancy-switch.
The directory links no separate docs for React Fancy Switch; start from its site at https://github.com/Aslam97/react-fancy-switch.
GitHub lists React Fancy Switch under the MIT license. Read the license file in its repository for the terms.
The directory records no price for React Fancy Switch. Its site, https://github.com/Aslam97/react-fancy-switch, is where its pricing, if any, is stated.
No. React Fancy Switch is made by Aslam97 and listed here as a link. A shadcn.io Pro plan covers shadcn.io's own blocks, templates and tools.
Other resources in Libraries & Components, newest first: Emblor, Date Range Picker, enhanced-button and Nyxb UI. Their pages are linked under Similar to React Fancy Switch.
Open its category, Libraries & Components, or one of its tags (Components, Inputs and Animation): each page lists the resources that share it.
4.9 out of 5 from 150+ developers
Found your stack? Ship it.
6,000+ blocks, premium templates and MCP in every Pro plan. The directory stays free.
Get Pro



