Web development components for $1. No subscriptions.

Toggle Button

Preview dimensions are shown in CSS pixels.

Details

A toggle button that switches between selected and default states. Supports repeated clicks and keyboard activation, with clear visual feedback for save and favorite actions. Includes standalone HTML, CSS and vanilla JavaScript.

Features

  • Selected and default states
  • Click-to-toggle interaction
  • Visible selection feedback
  • Reusable action control
  • HTML, CSS and JavaScript

Keywords:

Free license

Read the license included with this component for its permissions, conditions and required notices.

Read the Terms of Service

Questions about licensing? Contact us.