Toggle Switches

Simple

On/off toggle switches with smooth animations and accessibility features

Updated about 2 months ago
Tested & Responsive

Live Demo

Preview:
Desktop view

Basic Toggle

Toggle with Description

Receive emails about new products and features.

Toggle Sizes

Resize to see how the component adapts to different screen sizes

Installation & Usage

1

Copy the ERB template

Copy the ERB code from the template tab above and paste it into your Rails view file.

2

Add the Stimulus controller

Create the Stimulus controller file in your JavaScript controllers directory.