Scalar UI
Marketing UIApp UIAIChartsBackgrounds
Sign inGet started
Scalar UI
Scalar UI© 2026 Scalar Limited

React · Tailwind CSS · Motion

Browse

HomeAll components 213

Collections

Marketing UI 107App UI 94AI 16Charts 45Backgrounds 2Text 43

More

Text 43

Getting started

Installation

Primitives

AccordionsAlert DialogsAlerts2Aspect RatiosAvatars2BadgesBreadcrumbsButton GroupsButtons2CalendarsCheckboxesCollapsiblesComboboxesCommand MenusContext MenusDate PickersDialogsDropdown MenusEmpty StatesFields2FormsHover CardsInput OTPInputs3KbdMenubarsNavigation MenusPaginationPassword InputsPopoversProgress2Radio GroupsResizableScroll AreasSelectsSeparatorsSheetsSkeletonsSlidersSpinnersSwitchesTablesTabsToastsToggles2ToolbarsTooltipsSortablesStatus DotsTree ViewsFile UploadsSteppers

Layouts

SidebarsNavbarsApp Shells

Blocks

SchedulersBoards3CanvasesWorkflowsAI apps4Developer tools3AuthenticationOnboardingSettingsPricing & upgrades2Help & feedback4System pages7Admin console

Other

Cards

Resources

Docs & installScalar Design
App UIPrimitives

Toggles

Buttons that stay on or off, alone or in a group.

PreviousToastsNextToolbars

On this page

ToggleDefaultOutlineRaisedWith TextSizeDisabledToggle GroupSegmentedOutlineMultipleBilling PeriodVertical

Toggle

A two-state button in ghost, outline and raised styles that presses in when it's on.

radix-ui

Default

A ghost toggle that fills when pressed.

Outline

variant="outline" for toggles that sit on their own.

Raised

variant="raised": a raised key that presses in when it's on, for call controls.

With Text

An icon and a label; style the icon from the on state.

Size

sm, md (default) and lg.

Disabled

Disabled toggles keep their state but can't change.

Toggle Group

A set of toggles where one or many can be on: a segmented control with a sliding pill, an attached outline group, or loose ghost items.

radix-ui · motion

Segmented

type="single": a pill glides to the chosen option, and one option always stays selected.

Outline

variant="outline" attaches the items into one bordered control.

Multiple

type="multiple" with variant="ghost", for formatting toolbars.

Billing Period

A small segmented control driving a price, with a badge inside an item.

Vertical

orientation="vertical" for a settings section switcher.