# Switch URL: /components/switch Source: https://github.com/daangn/seed-design/blob/dev/docs/content/components/switch.mdx A component that allows turning specific settings and states on or off immediately. ## Anatomy ![Composed of Switch Mark and Label.]() Switch is composed of Switch Mark and Label. Switch Mark is provided as a separate component, so it can be freely combined and used on its own. Switch Mark consists of a Thumb and a Track. ## Properties ### Size ![Size Property]() Switch is provided in heights of 16, 24, and 32. ### Tone ![Tone Property]() Switch uses Neutral Tone. ### State ![State]() ![State]() Switch has Selected and Unselected states, and each state is expressed as a combination with Enabled and Disabled states depending on user interaction. ### Layout ![Layout]() For each Switch size, we provide a recommended combination with the text label style that visually fits it best. This lets you quickly build a consistent, well-balanced UI. ## Guidelines ### Switch Touch Target ![Touch Target]() Switch treats the area that includes the Switch Mark and Label as its target. Switch's 16 size has a height of 24 because it needs to guarantee the minimum touch target area. ![Touch Target]() When Switch is combined with something like [List](/components/list), the whole row should become the target area. ![Touch Target comparison]() **Because Switch Mark is designed to be used in combination with other elements, it does not have a separate touch area based on its own element size.** ### Using Switch for state that activates immediately Toggling Switch produces an immediate result, so use [Checkbox](/components/checkbox) when the result doesn't appear until the user taps a final button. ### Use only for independent functionality Switch is an element that operates independently. When you need an action like 'select all', it's better to use a component with a parent-child relationship. ### Clearly mark the Disabled state ![Example showing both the entire List Item and the Switch Mark in a disabled state]() When a Switch is disabled, it's recommended to also show the text label in a disabled color so users don't mistake the state of the whole item. ## Switch vs. Checkbox ### Checkbox vs. Switch comparison ![Usage example]() [Checkbox](/components/checkbox) and Switch are components that indicate whether the user has made a selection. | | Checkbox | Switch | | ------------------------------- | ---------------------------------------------------------------------------- | --------------------------------------------------------- | | **Applying the selected value** | The value is saved only after an action like Save is performed (recommended) | Applied immediately with no separate action (recommended) | | **How items are organized** | Multiple items can be listed under one category | Recommended to be organized as individual items | | **Configuring child items** | A parent can select/deselect all child items | No relationship between parent and child items | ## Specification ### Switch Component spec (JSON): /rootage/components/switch.json ### Switchmark Component spec (JSON): /rootage/components/switchmark.json