Docs
Switch

Switch

Switch component is a user-friendly control that allows users to toggle between checked and not checked states. It provides a visual representation of a binary choice, where users can easily switch between two states. Switches are commonly used in settings, preferences, or any scenario where a simple on/off or true/false selection is required. The Switch component enhances the user experience by offering an intuitive and accessible way to interact with and control binary options.

Installation

yarn add @camped-ui/switch

Usage

import { Switch } from "@camped-ui/switch";
<Switch />

Examples

Form

Email Notifications

Receive emails about new products, features, and more.

Receive emails about your account security.