Ecme logoEcme logo
Dashboard
    Ecommerce
    Project
    Marketing
    Analytic
Network
    BGP
      Peer
      RTBH
DPI
    Overview
    Traffic Logs
    Analysis
      IP Analysis
      Domain Check
      nav.dpi.analysis.unmapped-asns
    Threats
      Blacklists
      nav.dpi.threats.feeds
    Configuration
      Senders
      Ignored Domains
Concepts
    AI
      Chat
      Image
    Projects
      Scrum Board
      List
      Details
      Tasks
      Issue
    Customer
      List
      Edit
      Create
      Details
    Products
      List
      Edit
      Create
    Orders
      List
      Edit
      Create
      Details
    Account
      Settings
      Activity log
      Roles & Permissions
      Pricing
    Help Center
      Support Hub
      Article
      Edit Article
      Manage Article
    Calendar
    File Manager
    Mail
    Chat
UI Components
    Common
      Button
      Grid
      Typography
      Icons
    Feedback
      Alert
      Dialog
      Drawer
      Progress
      Skeleton
      Spinner
      Toast
    Data Display
      Avatar
      Badge
      Calendar
      Cards
      Carousel
      Table
      Tag
      Timeline
      Tooltip
    Forms
      Checkbox
      Date Picker
      Form Control
      Input
      Input Group
      Radio
      Segment
      Select
      Slider
      Switcher
      Time Input
      Upload
    Navigation
      Dropdown
      Menu
      Pagination
      Steps
      Tabs
    Graph
      Charts
      Maps
Authentication
    Sign In
      Simple
      Side
      Split
    Sign Up
      Simple
      Side
      Split
    Forgot Password
      Simple
      Side
      Split
    Reset Password
      Simple
      Side
      Split
    Otp Verification
      Simple
      Side
      Split
Others
    Access Denied
    Landing
Guide
    Documentation
    Shared Component
    Utilities
    Changelog
Copyright © 2026 Ecme All rights reserved.
Term & Conditions | Privacy & Policy

Switcher

Switcher component used as an alternative of the single Checkbox, it can be switch between enabled or disabled.

Basic

Basic example for Switcher.

Content

Switcher can have different content on state enabled or disabled

Disabled

Set disabled to true to disable the Switcher.

Loading

We can set isLoading prop to true and make Switcher status to pending.

Colors

We can apply custom color to Switcher via switcherClass prop.

Controlled

Controlled example.

API

Switcher
PropDescriptionTypeDefault
checkedWhether the Switcher is checkedboolean-
checkedContentContent to be shown when the state is checkedstring | ReactNode-
defaultCheckedWhether the Switcher initial state is checkedboolean-
disabledWhether the Switcher is disabledboolean-
isLoadingWhether the checkbox is loadingbooleanfalse
labelRefRef of Checkbox label elementstring-
nameThe name of the switcher input fieldstring-
onChangeCallback when Switcher value is changed(checked: boolean, e: MouseEvent) => void-
readOnlyWhether the Switcher is read onlyboolean-
switcherClassCustom css for Switcher toggledstring-
unCheckedContentContent to be shown when the state is uncheckedstring | ReactNode-
TABLE OF CONTENT
  • Basic
  • Content
  • Disabled
  • Loading
  • Colors
  • Controlled