dxDigitexa UI
HomeDocsComponentsExamplesAI
Get started
Sections
IntroductionComponentsInstallationThemingCLIFor AI agentsChangelog
Examples
Workspace overviewSettings
Components
AccordionActivity feedAlertAlert dialogAvatarBadgeBreadcrumbButtonCalendarCalendar viewCardCheckboxCollapsibleComboboxCommandContext menuData tableDate pickerDialogDropdown menuEmpty stateFieldHover cardInputInput groupKanbanKbdLabelMeterPaginationPopoverPriorityProgressRadio groupScroll areaSelectSeparatorSheetSidebarSkeletonSliderSpinnerStatus iconSwitchTableTabsTask rowTextareaTimelineToastToggleToggle groupTooltip

Switch

On/off toggle.

Installation

$ curl -fsSL https://ui.digitexa.com/dx.mjs | node --input-type=module - add switch

Also adds utils, theme and installs @radix-ui/react-switch.

Usage

import { Switch } from "@/components/ui/switch";

The Code tab above shows a complete example.

Status iconTable
On this page
PreviewInstallationUsage