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

Toggle

Two-state pressable button with default and outline variants, sized like Button.

Installation

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

Also adds utils, theme and installs @radix-ui/react-toggle, class-variance-authority.

Usage

import { Toggle, toggleVariants } from "@/components/ui/toggle";

The Code tab above shows a complete example.

ToastToggle group
On this page
PreviewInstallationUsage