Skip to content

Switch - CSS Component

The Switch component can be used imported from:

Playground

Construction

Common API

For the basics, check the common specifications.

The CSS component uses a <input type="checkbox"> tag or a <label> tag, depending if you want to insert a describing set for the input.

z-switch

The z-switch parameter is the main parameter used to render the switch component.

invalid-text

The input can be set as invalid using the invalid-text. This only work when label if provided:

Browser support

Detected engine:  

  • Chromium

  • Webkit

  • Gecko

HTML Examples

CodeSandbox example