Skip to content

React Fancy Switch

An accessible, animated switch and segmented control for React that behaves like a radio group.

react-fancy-switch.netlify.app

React Fancy Switch website screenshot
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-switch

What 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

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.

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