Switch

A control that allows the user to toggle between checked and not checked.

Usage

PreviewCode

API Reference

InputTypeDefault
id string `volt-switch-${++nextSwitchId}`
ariaLabel string ''
checked boolean false
disabled boolean false
OutputType
checkedChangeboolean

Component Source

Install via CLI:npx @voltui/cli add switch
TypeScript
Loading editor…

Copy this code to your project. The component uses ng-primitives/switch.