Switch

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

PreviousNext

Installation

1

Run the CLI

Use the CLI to add the component to your project.

Loading...

Examples

default

destructive

size

disabled

API

[z-switch] Directive

z-switch is a Directive that brings you a customizable switch with minimal configuration

To get a customized switch, just pass the following props to the directive.

Property Description Type Default
[zType] switch type default|destructive default
[zSize] switch size default|sm|lg default
[zId] switch id string