Forms
Switch
semantic HTML즉시 적용되는 켜짐과 꺼짐 상태를 전환합니다.
Live example
<label><input type="checkbox" role="switch" checked> 자동 저장</label>Variants and sizes
The pattern inherits theme and density tokens. Use compact, comfortable, or roomy density when the surrounding screen requires it.
compactcomfortableroomy
Public API
| Contract | Value |
|---|---|
| Implementation | semantic HTML |
| Status | stable |
| License | free |
| Since | 0.1 |
| HTML contract | Native HTML elements and attributes |
| Events | Native browser events |
Accessibility
Native HTML semantics and keyboard behavior are the baseline.
Server template guidance
<!-- Render the semantic HTML on the server. Load enhancement JavaScript only when this interaction is needed. -->