Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
643 changes: 643 additions & 0 deletions site/src/pages/components/switch.attribute.explainer.mdx

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions site/src/pages/components/switch.explainer.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
menu: Active Proposals
name: Switch (Explainer)
menu: Non-active Proposals
name: Switch Element (Explainer)
path: /components/switch.explainer
pathToResearch: /components/switch
layout: ../../layouts/ComponentLayout.astro
Expand All @@ -9,6 +9,8 @@ authors:
url: https://github.com/gfellerph
---

> **Note:** This explainer describes the `<switch>` element proposal, which is not currently being actively pursued. The current active proposal is the [Switch Attribute Explainer](/components/switch.attribute.explainer), which adds a `switch` attribute to `<input type="checkbox">`.

## Overview

A switch toggles a binary state on or off. Other names include "toggle", "lightswitch", "toggle switch" or "toggle button". [^1]
Expand Down