Selia
  • Documentation
  • Components
  • Blocks
  • GitHub
Prologue
  • Introduction
  • Installation
  • Design Approach
  • Customization
Components
  • Accordion
  • Alert
  • Alert dialog
  • Autocomplete
  • Avatar
  • Badge
  • Button
  • Card
  • Checkbox
  • Chip
  • Collapsible
  • Combobox
  • Command
  • Dialog
  • Divider
  • Field
  • Fieldset
  • Form
  • Heading
  • Icon box
  • Input
  • Input group
  • Item
  • Kbd
  • Label
  • Menu
  • Menubar
  • Meter
  • Number field
  • Pagination
  • Popover
  • Preview card
  • Progress
  • Radio
  • Scroll area
  • Select
  • Separator
  • Sidebar
  • Slider
  • Spinner
  • Stack
  • Switch
  • Table
  • Tabs
  • Text
  • Textarea
  • Toast
  • Toggle
  • Toggle group
  • Toolbar
  • Tooltip

Switch

Toggle control for binary on/off states and settings.

Base UI Reference

Installation

Add the component to your project using the following command:

Usage

Import

Import the component and its related parts.

Switch Parts
import { Switch } from "components/selia/switch";

Structure

The expected structure and composition of the component.

Anatomy
<Switch />
  1. Switch
    1. Installation
    2. Usage
      1. Import
      2. Structure
StackTable

On this page