iOS Toggle Component

Add a sleek, animated iOS-style toggle switch to your interface.

Example

Installation

Install the necessary dependencies:

npm install framer-motion

Copy and paste the following code into your project.