Skip to main content
Version: 1.0.2

Switch

Overview

The Switch component is a toggleable form control built on top of Radix UI's Switch Primitive, enhanced with beautiful animations using Framer Motion. It provides a user-friendly way to toggle between two states with smooth transitions and various visual styles.

Preview

Installation

npx @mindfiredigital/ignix-ui add switch

Usage

Import the component:

import { Switch } from './components/ui';

Basic Usage

function BasicSwitch() {
return <Switch defaultChecked />;
}

Variants